From fbf6f24f6c96292a933ab0dce9f05317d3d2f0ab Mon Sep 17 00:00:00 2001 From: Kristoffer Dalby Date: Mon, 21 Oct 2024 17:30:28 -0500 Subject: [PATCH] make preauthkey tags test stable Signed-off-by: Kristoffer Dalby --- integration/cli_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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