Commit 5d907d0
committed
fix(test): bump timeout on async ensureRepoMap tests to 30s
The 3 tests in 'ensureRepoMap (async)' time out intermittently at
jest's 5s default. The async path calls 'repoMap.checkAstGrepInstalled()'
and potentially 'repoMap.init()', both of which spawn the ast-grep
binary. Process spawn is slow on Windows (1-3s each) so the cumulative
external-binary work can push past 5s, giving false-positive timeouts.
Setting an explicit 30s timeout on these tests tolerates the legitimate
variability (slow Windows spawn, cold cache) without masking real
hangs. The sync versions (ensureRepoMapSync) don't need the bump
because they don't spawn anything.
Verified: 3 consecutive runs of __tests__/docs-patterns.test.js all
pass cleanly (~12s each).1 parent b7eaf1f commit 5d907d0
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
908 | 908 | | |
909 | 909 | | |
910 | 910 | | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
911 | 915 | | |
912 | 916 | | |
913 | 917 | | |
914 | 918 | | |
915 | | - | |
| 919 | + | |
916 | 920 | | |
917 | 921 | | |
918 | 922 | | |
919 | 923 | | |
920 | 924 | | |
921 | 925 | | |
922 | | - | |
| 926 | + | |
923 | 927 | | |
924 | 928 | | |
925 | 929 | | |
926 | 930 | | |
927 | 931 | | |
928 | 932 | | |
929 | 933 | | |
930 | | - | |
| 934 | + | |
931 | 935 | | |
932 | 936 | | |
933 | 937 | | |
| |||
0 commit comments