Skip to content

Commit 2278569

Browse files
authored
Eventually list namespaces for test (#5837)
1 parent b9507c9 commit 2278569

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/integration/cmd_namespace_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,10 @@ ComponentSettings:
180180

181181
Describe("list "+commandName, func() {
182182
It(fmt.Sprintf("should successfully list all the %ss", commandName), func() {
183-
out := helper.Cmd("odo", "list", commandName).ShouldPass().Out()
184-
Expect(out).To(ContainSubstring(commonVar.Project))
183+
Eventually(func() string {
184+
out := helper.Cmd("odo", "list", commandName).ShouldPass().Out()
185+
return out
186+
}, 10*time.Second, 1*time.Second).Should(ContainSubstring(commonVar.Project))
185187
})
186188
})
187189
}

0 commit comments

Comments
 (0)