From 6814acef9b30ad84f0d502919b0e7f3abeca0481 Mon Sep 17 00:00:00 2001 From: Krisztian Litkey Date: Wed, 4 Dec 2024 16:59:52 +0200 Subject: [PATCH] cache: update tests for update pod.PrettyName(). Signed-off-by: Krisztian Litkey --- pkg/resmgr/cache/pod_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/resmgr/cache/pod_test.go b/pkg/resmgr/cache/pod_test.go index b2d525c58..787f91bd3 100644 --- a/pkg/resmgr/cache/pod_test.go +++ b/pkg/resmgr/cache/pod_test.go @@ -223,7 +223,7 @@ var _ = Describe("Pod", func() { _, pods, _ = makePopulatedCache(nriPods, nil) - Expect(pods[0].PrettyName()).To(Equal(pods[0].GetName())) + Expect(pods[0].PrettyName()).To(Equal(pods[0].GetNamespace() + "/" + pods[0].GetName())) Expect(pods[1].PrettyName()).To(Equal(pods[1].GetNamespace() + "/" + pods[1].GetName())) }) })