Skip to content

Commit

Permalink
cache: update tests for InsertPod signature change.
Browse files Browse the repository at this point in the history
Signed-off-by: Krisztian Litkey <[email protected]>
  • Loading branch information
klihub authored and askervin committed Dec 11, 2024
1 parent b504814 commit a961af3
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions pkg/resmgr/cache/cache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
})

Expand All @@ -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())
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit a961af3

Please sign in to comment.