Skip to content

Commit

Permalink
test: Fix test TS issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
GP committed Aug 14, 2019
1 parent 4af2186 commit 688a42c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ test('πŸ‘©πŸ»β€πŸ”¬ Should compress and decompress real Kafka messages.', asyn
const kafka = new Kafka({
brokers: [`${findKafkaLocation()}:9092`],
clientId: 'kafkajs-lz4',
logLevel: process.env['KAFKAJS_LOG_LEVEL'] || logLevel.NOTHING,
logLevel: logLevel.NOTHING,
});
const producer = kafka.producer();
const consumer = kafka.consumer({ groupId: 'lz4-group' });
Expand All @@ -94,6 +94,7 @@ test('πŸ‘©πŸ»β€πŸ”¬ Should compress and decompress real Kafka messages.', asyn
topic: fixture.topicName,
fromBeginning: true,
});
// @ts-ignore
consumer.run({ eachMessage: ({ message }) => messages.push(message as KafkaMessage) });
await waitFor(() => messages.length >= 1, {
maxWait: 60000,
Expand Down

0 comments on commit 688a42c

Please sign in to comment.