Skip to content

Commit 2c582c8

Browse files
committed
Puts kafka application start into it block to wait for leader election on the topics.
1 parent 4cc0b83 commit 2c582c8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ describe('Kafka transport', () => {
99
let server;
1010
let app: INestApplication;
1111

12-
before(`Starting Kafka app`, async () => {
12+
it(`Start Kafka app`, async () => {
1313
const module = await Test.createTestingModule({
1414
controllers: [KafkaController],
1515
}).compile();
@@ -27,7 +27,7 @@ describe('Kafka transport', () => {
2727
});
2828
await app.startAllMicroservicesAsync();
2929
await app.init();
30-
});
30+
}).timeout(30000);
3131

3232
it(`/POST (async command sum)`, done => {
3333
request(server)
@@ -56,4 +56,4 @@ describe('Kafka transport', () => {
5656
after(`Stopping Kafka app`, async () => {
5757
await app.close();
5858
});
59-
});
59+
}).timeout(30000);

0 commit comments

Comments
 (0)