Commit 995573a
committed
fix(test): exclude punycode slugs from URL parser property tests
The orgSlugArb and projectSlugArb generators could produce strings
starting with 'xn--' (punycode-encoded IDN labels). When used as a
subdomain (e.g. 'xn--0a.sentry.io'), the URL constructor silently
decodes the punycode, collapsing the hostname to 'sentry.io' and
dropping the org. This caused flaky failures in the buildTraceUrl →
parseSentryUrl round-trip test.
Fix: filter out xn-- prefixed slugs since real Sentry org/project
slugs are never punycode-encoded.1 parent f7198cc commit 995573a
1 file changed
+13
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
25 | 33 | | |
26 | 34 | | |
27 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
28 | 38 | | |
29 | 39 | | |
30 | 40 | | |
| |||
0 commit comments