Skip to content

Commit

Permalink
Debug teardown timeout on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
philipp-spiess committed Aug 8, 2024
1 parent 10c7868 commit 499d478
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions integrations/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ export function test(
let disposables: (() => Promise<void>)[] = []

async function dispose() {
console.log('start dispose()')
await Promise.all(disposables.map((dispose) => dispose()))
try {
if (debug) return
Expand All @@ -302,6 +303,7 @@ export function test(
throw err
}
}
console.log('end dispose()')
}

options.onTestFinished(dispose)
Expand Down

0 comments on commit 499d478

Please sign in to comment.