mirror of
https://github.com/binwiederhier/ntfy.git
synced 2024-11-23 11:37:54 +03:00
TestManager_UserManagement: move the longest rule on top
This commit is contained in:
parent
afd6d2e0ee
commit
543709336c
@ -227,10 +227,10 @@ func TestManager_UserManagement(t *testing.T) {
|
|||||||
benGrants, err := a.Grants("ben")
|
benGrants, err := a.Grants("ben")
|
||||||
require.Nil(t, err)
|
require.Nil(t, err)
|
||||||
require.Equal(t, []Grant{
|
require.Equal(t, []Grant{
|
||||||
|
{"everyonewrite", PermissionDenyAll},
|
||||||
{"mytopic", PermissionReadWrite},
|
{"mytopic", PermissionReadWrite},
|
||||||
{"writeme", PermissionWrite},
|
{"writeme", PermissionWrite},
|
||||||
{"readme", PermissionRead},
|
{"readme", PermissionRead},
|
||||||
{"everyonewrite", PermissionDenyAll},
|
|
||||||
}, benGrants)
|
}, benGrants)
|
||||||
|
|
||||||
everyone, err := a.User(Everyone)
|
everyone, err := a.User(Everyone)
|
||||||
|
Loading…
Reference in New Issue
Block a user