Skip to content
This repository was archived by the owner on Apr 8, 2024. It is now read-only.

Commit 6a083c9

Browse files
committed
Update tests
1 parent dabc09e commit 6a083c9

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/__tests__/integration/Client-MessageStart.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe('ZBClient', () => {
2424

2525
await zbc.publishStartMessage({
2626
name: 'MSG-START_JOB',
27-
timeToLive: 1000,
27+
timeToLive: 2000,
2828
variables: {
2929
testKey: randomId,
3030
},
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
import { ZBClient, ZBWorkerTaskHandler } from '../../index'
22

33
describe('Types API', () => {
4-
it("Hasn't broken any public type contracts", () => {
4+
it("Hasn't broken any public type contracts", async done => {
55
const zbc = new ZBClient()
66
const handler: ZBWorkerTaskHandler = (job, complete, worker) => {
77
worker.log(job.bpmnProcessId)
88
complete.success()
99
}
1010
zbc.createWorker('nope', handler)
11-
zbc.close()
11+
await zbc.close()
1212
expect(true).toBeTruthy()
13+
done()
1314
})
1415
})

0 commit comments

Comments
 (0)