diff --git a/test/integration-override/handlers/positions/handlerBatch.test.js b/test/integration-override/handlers/positions/handlerBatch.test.js index 0511f45b8..5f9f09ff3 100644 --- a/test/integration-override/handlers/positions/handlerBatch.test.js +++ b/test/integration-override/handlers/positions/handlerBatch.test.js @@ -732,7 +732,7 @@ Test('Handlers test', async handlersTest => { for (const transfer of td.transfersArray) { await Producer.produceMessage(transfer.messageProtocolPrepare, td.topicConfTransferPrepare, prepareConfig) } - await new Promise(resolve => setTimeout(resolve, 2000)) + await new Promise(resolve => setTimeout(resolve, 5000)) try { const positionPrepare = await wrapWithRetries(() => testConsumer.getEventsForFilter({ topicFilter: 'topic-notification-event', @@ -790,7 +790,7 @@ Test('Handlers test', async handlersTest => { for (const transfer of td.transfersArray) { await Producer.produceMessage(transfer.messageProtocolPrepare, td.topicConfTransferPrepare, prepareConfig) } - await new Promise(resolve => setTimeout(resolve, 2000)) + await new Promise(resolve => setTimeout(resolve, 5000)) try { const positionPrepare = await wrapWithRetries(() => testConsumer.getEventsForFilter({ topicFilter: 'topic-notification-event', @@ -831,7 +831,7 @@ Test('Handlers test', async handlersTest => { for (const transfer of td.transfersArray) { await Producer.produceMessage(transfer.messageProtocolPrepare, td.topicConfTransferPrepare, prepareConfig) } - await new Promise(resolve => setTimeout(resolve, 2000)) + await new Promise(resolve => setTimeout(resolve, 5000)) try { const positionPrepare = await wrapWithRetries(() => testConsumer.getEventsForFilter({ topicFilter: 'topic-notification-event', @@ -877,7 +877,7 @@ Test('Handlers test', async handlersTest => { for (const transfer of td.transfersArray) { await Producer.produceMessage(transfer.messageProtocolPrepare, td.topicConfTransferPrepare, prepareConfig) } - await new Promise(resolve => setTimeout(resolve, 2000)) + await new Promise(resolve => setTimeout(resolve, 5000)) // Consume messages from notification topic const positionPrepare = await wrapWithRetries(() => testConsumer.getEventsForFilter({ topicFilter: 'topic-notification-event', @@ -929,7 +929,7 @@ Test('Handlers test', async handlersTest => { for (const transfer of td.transfersArray) { await Producer.produceMessage(transfer.messageProtocolPrepare, td.topicConfTransferPrepare, prepareConfig) } - await new Promise(resolve => setTimeout(resolve, 2000)) + await new Promise(resolve => setTimeout(resolve, 5000)) // Consume messages from notification topic const positionPrepare = await wrapWithRetries(() => testConsumer.getEventsForFilter({ topicFilter: 'topic-notification-event', @@ -972,7 +972,7 @@ Test('Handlers test', async handlersTest => { for (const transfer of td.transfersArray) { await Producer.produceMessage(transfer.messageProtocolPrepare, td.topicConfTransferPrepare, prepareConfig) } - await new Promise(resolve => setTimeout(resolve, 2000)) + await new Promise(resolve => setTimeout(resolve, 5000)) try { const positionPrepare = await wrapWithRetries(() => testConsumer.getEventsForFilter({ topicFilter: 'topic-notification-event', @@ -1025,7 +1025,7 @@ Test('Handlers test', async handlersTest => { for (const transfer of td.transfersArray) { await Producer.produceMessage(transfer.messageProtocolFulfil, td.topicConfTransferFulfil, fulfilConfig) } - await new Promise(resolve => setTimeout(resolve, 2000)) + await new Promise(resolve => setTimeout(resolve, 5000)) try { const positionFulfil = await wrapWithRetries(() => testConsumer.getEventsForFilter({ topicFilter: 'topic-notification-event',