Repository navigation
Commit 130b03c
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 lidge-jun#2152.1 parent 88b0735 commit 130b03c
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 | | |
| |||
332 | 333 | | |
333 | 334 | | |
334 | 335 | | |
335 | | - | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
336 | 342 | | |
337 | 343 | | |
338 | 344 | | |
339 | 345 | | |
340 | | - | |
| 346 | + | |
341 | 347 | | |
342 | 348 | | |
343 | 349 | | |
| |||
0 commit comments