Skip to content

Commit

Permalink
fix intermittent failure in config_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-wolfe-okcupid committed Aug 29, 2024
1 parent fd4b8e7 commit c05f88d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ func TestObject_String(t *testing.T) {

t.Run("return the string of an object that contains multiple elements with the forbidden characters", func(t *testing.T) {
got := Object{"a": String("!@#$%^&*()_+{}[];:',./<>?\"\\"), "b": Int(2)}.String()
if got != "{a:\"!@#$%^&*()_+{}[];:',./<>?\"\\\", b:2}" && got != "{b:2, a:\"!@#$%^&*()_+{}[];:',./<>?\"}" {
if got != "{a:\"!@#$%^&*()_+{}[];:',./<>?\"\\\", b:2}" && got != "{b:2, a:\"!@#$%^&*()_+{}[];:',./<>?\"\\\"}" {
fail(t, got, "{a:\"!@#$%^&*()_+{}[];:',./<>?\"\\\", b:2}")
}
})
Expand Down

0 comments on commit c05f88d

Please sign in to comment.