Fix #4958: Increase vitest timeout for Windows CI #4959
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #4958
Problem
The ShadowCheckpointService.spec.ts tests were timing out on Windows CI due to the default 10-second vitest timeout being insufficient. The tests involve heavy file system and git operations that can take longer than 10 seconds, especially on Windows CI environments.
Solution
testTimeout: 20_000andhookTimeout: 20_000to the vitest configuration insrc/vitest.config.tsvitest.setConfig({ testTimeout: 10_000 })call from the test file since timeout is now properly configured globallyhookTimeoutconfiguration is crucial as the failure was specifically in thebeforeEachhookTesting
This should resolve the Windows CI timeout issues while maintaining test reliability.
Important
Increase vitest timeout settings to 20 seconds in
vitest.config.tsto fix Windows CI test timeouts.testTimeoutandhookTimeoutto20_000invitest.config.tsto address Windows CI timeouts.vitest.setConfig({ testTimeout: 10_000 })fromShadowCheckpointService.spec.tsas global configuration now handles timeouts.ShadowCheckpointService.spec.tspass locally within the new timeout limits.This description was created by
for e605f5b. You can customize this summary. It will automatically update as commits are pushed.