From a961af3931165ad9075d617ad6d8b2c797d650f2 Mon Sep 17 00:00:00 2001 From: Krisztian Litkey Date: Wed, 4 Dec 2024 16:59:26 +0200 Subject: [PATCH] cache: update tests for InsertPod signature change. Signed-off-by: Krisztian Litkey --- pkg/resmgr/cache/cache_test.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pkg/resmgr/cache/cache_test.go b/pkg/resmgr/cache/cache_test.go index 2a6fedb6b..7deb42650 100644 --- a/pkg/resmgr/cache/cache_test.go +++ b/pkg/resmgr/cache/cache_test.go @@ -42,9 +42,8 @@ var _ = Describe("Cache", func() { c, _, _ = makePopulatedCache(nriPods, nil) for _, nriPod := range nriPods { - pod, err := c.InsertPod(nriPod) + pod := c.InsertPod(nriPod, nil) Expect(pod).ToNot(BeNil()) - Expect(err).To(BeNil()) } }) @@ -61,9 +60,8 @@ var _ = Describe("Cache", func() { c, _, _ = makePopulatedCache(nriPods, nil) for _, nriPod := range nriPods { - pod, err := c.InsertPod(nriPod) + pod := c.InsertPod(nriPod, nil) Expect(pod).ToNot(BeNil()) - Expect(err).To(BeNil()) chk, ok := c.LookupPod(pod.GetID()) Expect(chk).ToNot(BeNil()) @@ -107,9 +105,8 @@ func makePopulatedCache(nriPods []*nri.PodSandbox, nriCtrs []*nri.Container) (ca ) for _, nriPod := range nriPods { - pod, err := c.InsertPod(nriPod) + pod := c.InsertPod(nriPod, nil) Expect(pod).ToNot(BeNil()) - Expect(err).To(BeNil()) pods = append(pods, pod) } for _, nriCtr := range nriCtrs {