Skip to content

Commit

Permalink
fix: call .close on pool
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Nov 18, 2023
1 parent fba232a commit 0e0f517
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vitest/src/node/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -762,10 +762,10 @@ export class Vitest {
closePromises.push(this.coreWorkspaceProject.close().then(() => this.server = undefined as any))

if (this.pool) {
closePromises.push(async () => {
closePromises.push((async () => {
await this.pool?.close?.()
this.pool = undefined
})
})())
}

closePromises.push(...this._onClose.map(fn => fn()))
Expand Down

0 comments on commit 0e0f517

Please sign in to comment.