@dbos-inc/kafkajs-receive 3.0.20-preview → 3.0.23-preview

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dbos-inc/kafkajs-receive",
3
- "version": "3.0.20-preview",
3
+ "version": "3.0.23-preview",
4
4
  "description": "DBOS event reciever for Kafka using KafkaJS",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -140,7 +140,6 @@ async function setupTopics(kafka: Kafka, topics: string[]) {
140
140
  }
141
141
  }
142
142
 
143
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
144
143
  suite('kafkajs-receive', async () => {
145
144
  const kafkaAvailable = await validateKafka(kafkaConfig);
146
145
  let producer: Producer | undefined = undefined;
@@ -202,8 +201,7 @@ suite('kafkajs-receive', async () => {
202
201
  );
203
202
 
204
203
  for (const { functionName, topic } of testCases) {
205
- // eslint-disable-next-line @typescript-eslint/no-floating-promises
206
- test(`${topic}-${functionName}`, { skip: !kafkaAvailable, timeout: 40000 }, async () => {
204
+ await test(`${topic}-${functionName}`, { skip: !kafkaAvailable, timeout: 40000 }, async () => {
207
205
  const message = `test-message-${Date.now()}`;
208
206
  await producer!.send({ topic, messages: [{ value: message }] });
209
207
  const result = await waitForMessage(KafkaTestClass.emitter, functionName, topic);
@@ -216,4 +214,4 @@ suite('kafkajs-receive', async () => {
216
214
  assert(!!status);
217
215
  });
218
216
  }
219
- });
217
+ }).catch(assert.fail);