From 905e771730e54939fb12e648e409e3efaabb70b8 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2e/aks-runtime/aks_runtime_test.go b/e2e/aks-runtime/aks_runtime_test.go index 4ec8f3a5d..7bd58d546 100644 --- a/e2e/aks-runtime/aks_runtime_test.go +++ b/e2e/aks-runtime/aks_runtime_test.go @@ -108,7 +108,7 @@ func TestAKSRuntime(t *testing.T) { pods, err := c.Client.CoreV1().Pods(namespace).List(ctx, metav1.ListOptions{}) require.NoError(err) - require.Len(pods.Items, 1) + 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)