Skip to content

Commit

Permalink
Update close timeout to check servers on resolved projects
Browse files Browse the repository at this point in the history
  • Loading branch information
surc54 committed Apr 16, 2024
1 parent 232e732 commit 4c840e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vitest/src/node/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ export class Vitest {
this.state.getProcessTimeoutCauses().forEach(cause => console.warn(cause))

if (!this.pool) {
const runningServers = [this.server, ...this.projects.map(p => p.server)].filter(Boolean).length
const runningServers = [this.server, ...this.resolvedProjects.map(p => p.server)].filter(Boolean).length

if (runningServers === 1)
console.warn('Tests closed successfully but something prevents Vite server from exiting')
Expand Down

0 comments on commit 4c840e5

Please sign in to comment.