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

Commit

Permalink
working
Browse files Browse the repository at this point in the history
  • Loading branch information
jwulf committed Jun 19, 2023
1 parent 9ea4871 commit 06b52a3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/__tests__/integration/Client-startProcess.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jest.setTimeout(30000)

let zbc = new ZBClient()
let wf: CreateProcessInstanceResponse
let id: string
let id: string | null
let processId: string
let processId2: string

Expand All @@ -26,16 +26,18 @@ beforeEach(() => {

afterEach(async () => {
if (id) {
// console.log(`Canceling process id ${id}`)
console.log(`Canceling process id ${id}`)
await zbc.cancelProcessInstance(id).catch(_ => _)
id = null
}
await zbc.close()
})

afterAll(async () => {
if (id) {
// console.log(`Canceling process id ${id}`)
console.log(`Canceling process id ${id}`)
zbc.cancelProcessInstance(id).catch(_ => _)
id = null
}
await zbc.close() // Makes sure we don't forget to close connection
await cancelProcesses(processId)
Expand Down

0 comments on commit 06b52a3

Please sign in to comment.