From b6f090f763800e5c1a21fd9d158b9a83e5121d58 Mon Sep 17 00:00:00 2001 From: RinkiyaKeDad Date: Thu, 29 Jul 2021 10:44:31 +0530 Subject: [PATCH] fixes for cache tests Signed-off-by: RinkiyaKeDad --- pkg/policycache/cache_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/policycache/cache_test.go b/pkg/policycache/cache_test.go index 04b8a0dce7..a4440976df 100644 --- a/pkg/policycache/cache_test.go +++ b/pkg/policycache/cache_test.go @@ -145,7 +145,7 @@ func Test_Add_Remove(t *testing.T) { } generate := pCache.get(Generate, kind, "") - if len(mutate) != 1 { + if len(generate) != 1 { t.Errorf("expected 1 generate policy, found %v", len(generate)) } @@ -173,7 +173,7 @@ func Test_Add_Remove_Any(t *testing.T) { } generate := pCache.get(Generate, kind, "") - if len(mutate) != 1 { + if len(generate) != 1 { t.Errorf("expected 1 generate policy, found %v", len(generate)) }