From 5edcb5dbd03f0fae8e0a9a75cf9ce32b64be16ac 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 4ec8f3a5d..f023fa3ce 100644 --- a/e2e/aks-runtime/aks_runtime_test.go +++ b/e2e/aks-runtime/aks_runtime_test.go @@ -1,7 +1,7 @@ // Copyright 2024 Edgeless Systems GmbH // SPDX-License-Identifier: AGPL-3.0-only -//go:build e2e +///go:build e2e package aksruntime @@ -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)