Repository navigation
Commit 8575838
committed
test(clients): assert the Pi override with join, not a POSIX separator
`an accepted override still resolves through the route` hard-coded
"/tmp/opencodex-pi-route-fixture/models.json". The resolver builds that
destination with `join`, which is `\` on win32, so the case asserted the
host's path separator rather than the override taking effect and was red
on every Windows run:
Expected: "/tmp/opencodex-pi-route-fixture/models.json"
Received: "\tmp\opencodex-pi-route-fixture\models.json"
Build the expectation with `join` from one binding shared with the env
value. `join` is identity for this input on POSIX, so Linux and macOS
are unchanged.
The assertion still pins what it was written for: making `piAgentDir`
ignore the override fails this case, so it did not become a tautology.
Refs #2152.1 parent 3c6a452 commit 8575838
1 file changed
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
314 | 315 | | |
315 | 316 | | |
316 | 317 | | |
317 | | - | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
318 | 324 | | |
319 | 325 | | |
320 | 326 | | |
321 | 327 | | |
322 | | - | |
| 328 | + | |
323 | 329 | | |
324 | 330 | | |
325 | 331 | | |
| |||
0 commit comments