Skip to content

Commit

Permalink
make preauthkey tags test stable
Browse files Browse the repository at this point in the history
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
  • Loading branch information
kradalby committed Oct 21, 2024
1 parent 022426c commit 94b82d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion integration/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 94b82d5

Please sign in to comment.