From aa5ebb817a5e4a4276a268e476324d358b5411b8 Mon Sep 17 00:00:00 2001 From: Adam Chalmers Date: Wed, 10 Mar 2021 13:48:59 -0600 Subject: [PATCH] TUN-4075: Dedup test should not compare order of list --- cmd/cloudflared/tunnel/config_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/cloudflared/tunnel/config_test.go b/cmd/cloudflared/tunnel/config_test.go index edfb77cd..929d7dfe 100644 --- a/cmd/cloudflared/tunnel/config_test.go +++ b/cmd/cloudflared/tunnel/config_test.go @@ -9,5 +9,5 @@ import ( func TestDedup(t *testing.T) { expected := []string{"a", "b"} actual := dedup([]string{"a", "b", "a"}) - require.Equal(t, expected, actual) + require.ElementsMatch(t, expected, actual) }