From 0e6d5b1ec91478910ddd5971cea739d8207cc21d Mon Sep 17 00:00:00 2001 From: Jakub Stejskal Date: Fri, 12 Jan 2024 13:03:57 +0100 Subject: [PATCH] Fix readiness for all pods in ns Signed-off-by: Jakub Stejskal --- src/main/java/io/odh/test/utils/PodUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/odh/test/utils/PodUtils.java b/src/main/java/io/odh/test/utils/PodUtils.java index cd0a6742..b4751fbe 100644 --- a/src/main/java/io/odh/test/utils/PodUtils.java +++ b/src/main/java/io/odh/test/utils/PodUtils.java @@ -32,8 +32,8 @@ public static void waitForPodsReady(String namespaceName, boolean containers, Ru TestConstants.GLOBAL_POLL_INTERVAL_MEDIUM, READINESS_TIMEOUT, () -> { List pods = ResourceManager.getClient().listPods(namespaceName); - if (pods.isEmpty()) { - LOGGER.debug("Expected Pods are ready"); + if (!pods.isEmpty()) { + LOGGER.debug("Expected Pods are not ready!"); return true; } for (Pod pod : pods) {