From 991232bb136d03a745714d18d9e0359f3f1305eb Mon Sep 17 00:00:00 2001 From: miampf Date: Fri, 6 Dec 2024 12:55:32 +0100 Subject: [PATCH] check GreaterOrEqual to account for log collector --- e2e/aks-runtime/aks_runtime_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/aks-runtime/aks_runtime_test.go b/e2e/aks-runtime/aks_runtime_test.go index be0f2a4c6c..63eae4f676 100644 --- a/e2e/aks-runtime/aks_runtime_test.go +++ b/e2e/aks-runtime/aks_runtime_test.go @@ -108,8 +108,8 @@ func TestAKSRuntime(t *testing.T) { pods, err := c.Client.CoreV1().Pods(namespace).List(ctx, metav1.ListOptions{}) require.NoError(err) - require.Len(pods, 1) - pod := pods[0] + require.GreaterOrEqual(len(pods.Items), 1) + pod := pods.Items[0] // only one pod was deployed logs, err := c.Client.CoreV1().Pods(namespace).GetLogs(pod.Name, &corev1.PodLogOptions{}).DoRaw(ctx) require.NoError(err)