From cba8c1f5e2e4431245c6c3d8d74a6a8f7884431e Mon Sep 17 00:00:00 2001 From: Mark Rossetti Date: Mon, 22 May 2023 11:40:51 -0700 Subject: [PATCH] Fixing windows memory allocation e2e tests after a refactor Signed-off-by: Mark Rossetti --- test/e2e/windows/memory_limits.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/e2e/windows/memory_limits.go b/test/e2e/windows/memory_limits.go index 2bcab369d90..7773e79b679 100644 --- a/test/e2e/windows/memory_limits.go +++ b/test/e2e/windows/memory_limits.go @@ -182,7 +182,7 @@ func getNodeMemory(ctx context.Context, f *framework.Framework) nodeMemory { // Assuming that agent nodes have the same config // Make sure there is >0 agent nodes, then use the first one for info - gomega.Expect(nodeList).To(gomega.BeEmpty()) + gomega.Expect(nodeList.Items).ToNot(gomega.BeEmpty()) ginkgo.By("Getting memory details from node status and kubelet config") status := nodeList.Items[0].Status