Skip to content

Commit

Permalink
fix: tests still say Running after test run finishes
Browse files Browse the repository at this point in the history
  • Loading branch information
IGx89 committed Dec 29, 2022
1 parent b4ebe9c commit ef2d017
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/pure/ApiProcess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,9 @@ export class ApiProcess {
this.vitestState = buildWatchClient({
port,
handlers: this.handlers,
reconnectInterval: 100,
reconnectTries: 10,
// vitest could take up to 10 seconds to start up on some computers, so reconnects need to be long enough to handle that
reconnectInterval: 500,
reconnectTries: 20,
})

this.vitestState.loadingPromise.then((isRunning) => {
Expand Down
5 changes: 3 additions & 2 deletions src/watch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,9 @@ export class TestWatcher extends Disposable {
}
},
},
reconnectInterval: 200,
reconnectTries: 10,
// vitest could take up to 10 seconds to start up on some computers, so reconnects need to be long enough to handle that
reconnectInterval: 500,
reconnectTries: 20,
})

effect(() => {
Expand Down

0 comments on commit ef2d017

Please sign in to comment.