diff --git a/hscontrol/db/preauth_keys_test.go b/hscontrol/db/preauth_keys_test.go index 9dd5b199..ec3f6441 100644 --- a/hscontrol/db/preauth_keys_test.go +++ b/hscontrol/db/preauth_keys_test.go @@ -1,6 +1,7 @@ package db import ( + "sort" "time" "github.com/juanfont/headscale/hscontrol/types" @@ -169,5 +170,7 @@ func (*Suite) TestPreAuthKeyACLTags(c *check.C) { listedPaks, err := db.ListPreAuthKeys("test8") c.Assert(err, check.IsNil) - c.Assert(listedPaks[0].Proto().GetAclTags(), check.DeepEquals, tags) + gotTags := listedPaks[0].Proto().GetAclTags() + sort.Sort(sort.StringSlice(gotTags)) + c.Assert(gotTags, check.DeepEquals, tags) }