Skip to content

Commit cc5ea08

Browse files
committed
Update the timeout on the async messages.
1 parent 2c582c8 commit cc5ea08

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

integration/microservices/e2e/sum-kafka.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,21 +37,21 @@ describe('Kafka transport', () => {
3737
setTimeout(() => {
3838
expect(KafkaController.MATH_SUM).to.eq(15);
3939
done();
40-
}, 1000);
40+
}, 4000);
4141
});
42-
});
42+
}).timeout(5000);
4343

44-
it(`/POST (event notification)`, done => {
44+
it(`/POST (async event notification)`, done => {
4545
request(server)
4646
.post('/notify')
4747
.send([1, 2, 3, 4, 5])
4848
.end(() => {
4949
setTimeout(() => {
5050
expect(KafkaController.IS_NOTIFIED).to.be.true;
5151
done();
52-
}, 1000);
52+
}, 4000);
5353
});
54-
});
54+
}).timeout(5000);
5555

5656
after(`Stopping Kafka app`, async () => {
5757
await app.close();

0 commit comments

Comments
 (0)