From 0d95cf35082ab99fbf2ac276d43ec8e681375769 Mon Sep 17 00:00:00 2001 From: Kasem Alem Date: Wed, 28 Feb 2024 12:10:44 +0200 Subject: [PATCH] fix(kfluxbugs-1128): fix rhtap-demo falkiness Signed-off-by: Kasem Alem --- tests/rhtap-demo/rhtap-demo.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/rhtap-demo/rhtap-demo.go b/tests/rhtap-demo/rhtap-demo.go index b6e7c33e16..ca950e5315 100644 --- a/tests/rhtap-demo/rhtap-demo.go +++ b/tests/rhtap-demo/rhtap-demo.go @@ -588,7 +588,11 @@ var _ = framework.RhtapDemoSuiteDescribe(func() { It("should lead to Snapshot CR being marked as passed", func() { snapshot, err = fw.AsKubeAdmin.IntegrationController.GetSnapshot("", pipelineRun.Name, "", fw.UserNamespace) Expect(err).ShouldNot(HaveOccurred()) - Expect(fw.AsKubeAdmin.CommonController.HaveTestsSucceeded(snapshot)).To(BeTrue(), fmt.Sprintf("tests have not succeeded for snapshot %s/%s", snapshot.GetNamespace(), snapshot.GetName())) + Eventually(func() bool { + return fw.AsKubeAdmin.CommonController.HaveTestsSucceeded(snapshot) + + }, time.Minute*5, defaultPollingInterval).Should(BeTrue(), fmt.Sprintf("tests have not succeeded for snapshot %s/%s", snapshot.GetNamespace(), snapshot.GetName())) + }) It("should trigger creation of Release CR", func() {