diff --git a/integration/cli_test.go b/integration/cli_test.go index 2b81e814..a6c8258e 100644 --- a/integration/cli_test.go +++ b/integration/cli_test.go @@ -212,7 +212,9 @@ func TestPreAuthKeyCommand(t *testing.T) { continue } - assert.Equal(t, listedPreAuthKeys[index].GetAclTags(), []string{"tag:test1", "tag:test2"}) + tags := listedPreAuthKeys[index].GetAclTags() + sort.Strings(tags) + assert.Equal(t, []string{"tag:test1", "tag:test2"}, tags) } // Test key expiry