diff --git a/tests/integration/cmd_namespace_test.go b/tests/integration/cmd_namespace_test.go index 0d1d4de5431..f03bcc2ee10 100644 --- a/tests/integration/cmd_namespace_test.go +++ b/tests/integration/cmd_namespace_test.go @@ -180,8 +180,10 @@ ComponentSettings: Describe("list "+commandName, func() { It(fmt.Sprintf("should successfully list all the %ss", commandName), func() { - out := helper.Cmd("odo", "list", commandName).ShouldPass().Out() - Expect(out).To(ContainSubstring(commonVar.Project)) + Eventually(func() string { + out := helper.Cmd("odo", "list", commandName).ShouldPass().Out() + return out + }, 10*time.Second, 1*time.Second).Should(ContainSubstring(commonVar.Project)) }) }) }