@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 +1 -1
- package/tests/kafkajs.test.ts +2 -4
package/package.json
CHANGED
package/tests/kafkajs.test.ts
CHANGED
|
@@ -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
|
-
|
|
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);
|