Commit 4b7e42e
committed
test(models): save/restore Flag mutations to keep them suite-local
Mutating Flag.OPENCODE_MODELS_PATH at module-load time leaked the change
into every subsequent test file in the same bun process — Provider state
init then read undefined, fell into the snapshot/fetch fallback, and on
slower CI lanes timed out or returned empty providers (surfacing as the
"no providers found" failure on Windows for the SDK no-reply parity test).
Wrap both mutations in beforeAll/afterAll so they only apply while this
suite runs.1 parent c50d53f commit 4b7e42e
1 file changed
Lines changed: 16 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
18 | 27 | | |
19 | 28 | | |
20 | 29 | | |
| |||
0 commit comments