Commit 1d6c1b0
committed
fix(tests): drop leading "/" on relative-URL fixture — platform-portable
`ProxyEndpoints_RecordingProjection_Relative_Url_And_Zero_Status_Encodes_As_Error`
asserted `ServerUrl == null` on the "URL has no scheme" branch. The
fixture URL `"/relative-only/no-scheme"` happens to satisfy
`Uri.TryCreate(..., UriKind.Absolute, out var u)` on Linux because
System.Uri treats leading "/" paths as POSIX file paths (resolves to
a `file://` URI). On Windows the same call returns false, leaving
`parsed` null — which is the branch the test wanted to drive.
Drop the leading slash so the URL is non-absolute on every platform.
The intent (verify the projection's null-parsed branch + encoded
HttpPath + queue dedup behaviour) is preserved; the test now passes
on linux-amd64 CI runners that fell over on commit 2347e7e.
Comment in source documents the trap so future contributors don't
re-add the leading slash.1 parent 062452c commit 1d6c1b0
1 file changed
Lines changed: 8 additions & 2 deletions
Lines changed: 8 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
517 | 517 | | |
518 | 518 | | |
519 | 519 | | |
520 | | - | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
521 | 527 | | |
522 | 528 | | |
523 | 529 | | |
| |||
546 | 552 | | |
547 | 553 | | |
548 | 554 | | |
549 | | - | |
| 555 | + | |
550 | 556 | | |
551 | 557 | | |
552 | 558 | | |
| |||
0 commit comments