From 2c3d024724d6fbe68fc8d002fd93e800fe3b1111 Mon Sep 17 00:00:00 2001 From: Steve Hawkins Date: Mon, 20 Mar 2023 10:50:50 -0400 Subject: [PATCH] fix #4681: adding a wait for the list test --- .../src/test/java/io/fabric8/openshift/ImageStreamTagIT.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kubernetes-itests/src/test/java/io/fabric8/openshift/ImageStreamTagIT.java b/kubernetes-itests/src/test/java/io/fabric8/openshift/ImageStreamTagIT.java index 3150b68dc9f..7b2590024c6 100644 --- a/kubernetes-itests/src/test/java/io/fabric8/openshift/ImageStreamTagIT.java +++ b/kubernetes-itests/src/test/java/io/fabric8/openshift/ImageStreamTagIT.java @@ -62,7 +62,9 @@ void get() { @Test void list() { - + client.imageStreams().withName("list").waitUntilCondition(is -> is != null && is.getStatus() != null && + is.getStatus().getTags().stream().anyMatch(nt -> nt.getTag().equals("1.0.12")), + 30, TimeUnit.SECONDS); ImageStreamTagList istagList = client.imageStreamTags().list(); assertNotNull(istagList);