change context keys and fix tests

This commit is contained in:
Livio Amstutz
2020-03-30 11:52:08 +02:00
parent 96b1817d62
commit 40e4f69ca3
4 changed files with 12 additions and 8 deletions

View File

@@ -270,7 +270,7 @@ func Test_GetPermissionCtxIDs(t *testing.T) {
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
result := GetPermissionCtxIDs(tt.args.perms)
if !EqualStringArray(result, tt.result) {
if !equalStringArray(result, tt.result) {
t.Errorf("got wrong result, expecting: %v, actual: %v ", tt.result, result)
}
})