From 0a7df91ab8ef8767994b5186871aeae9daee70d0 Mon Sep 17 00:00:00 2001 From: Sara Bee <855595+doeg@users.noreply.github.com> Date: Mon, 28 Dec 2020 12:54:10 -0500 Subject: [PATCH] Assert ElementsMatch instead of Equal for slices returned by DiscoverVTGates in discovery_static_file_test.go Signed-off-by: Sara Bee <855595+doeg@users.noreply.github.com> --- go/vt/vtadmin/cluster/discovery/discovery_static_file_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/vt/vtadmin/cluster/discovery/discovery_static_file_test.go b/go/vt/vtadmin/cluster/discovery/discovery_static_file_test.go index 54b9b7c5b7c..addab84b578 100644 --- a/go/vt/vtadmin/cluster/discovery/discovery_static_file_test.go +++ b/go/vt/vtadmin/cluster/discovery/discovery_static_file_test.go @@ -225,7 +225,7 @@ func TestDiscoverVTGates(t *testing.T) { } assert.NoError(t, err) - assert.Equal(t, tt.expected, gates) + assert.ElementsMatch(t, tt.expected, gates) }) } }