Skip to content

Fix flaky TestConversionURLValues when run with -shuffle#165

Merged
hanzei merged 1 commit into
masterfrom
fix-flaky-url-values-test
Mar 9, 2026
Merged

Fix flaky TestConversionURLValues when run with -shuffle#165
hanzei merged 1 commit into
masterfrom
fix-flaky-url-values-test

Conversation

@hanzei

@hanzei hanzei commented Mar 4, 2026

Copy link
Copy Markdown
Collaborator

Tests that call SetURLValuesSliceKeySuffix mutate package-level global state without restoring it, causing TestConversionURLValues and TestConversionURLQuery to fail when shuffled to run after them

Fixes #164

Tests that call SetURLValuesSliceKeySuffix mutate package-level global
state without restoring it. When shuffled to run before
TestConversionURLValues, the suffix is "" or "[i]" instead of "[]",
causing key mismatches. Add t.Cleanup to restore the default suffix.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@hanzei
hanzei requested a review from geseq March 4, 2026 10:22
@hanzei
hanzei merged commit e1d0630 into master Mar 9, 2026
6 checks passed
@hanzei
hanzei deleted the fix-flaky-url-values-test branch March 9, 2026 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failing TestConversionURLValues

1 participant