From 543709336cc10168f52f5765f2d88b45537bfc8b Mon Sep 17 00:00:00 2001 From: Nikolay Zlatev Date: Tue, 24 Oct 2023 13:59:39 +0300 Subject: [PATCH] TestManager_UserManagement: move the longest rule on top --- user/manager_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user/manager_test.go b/user/manager_test.go index 97baadc3..b0143b97 100644 --- a/user/manager_test.go +++ b/user/manager_test.go @@ -227,10 +227,10 @@ func TestManager_UserManagement(t *testing.T) { benGrants, err := a.Grants("ben") require.Nil(t, err) require.Equal(t, []Grant{ + {"everyonewrite", PermissionDenyAll}, {"mytopic", PermissionReadWrite}, {"writeme", PermissionWrite}, {"readme", PermissionRead}, - {"everyonewrite", PermissionDenyAll}, }, benGrants) everyone, err := a.User(Everyone)