Skip to content

Commit

Permalink
Eventually list namespaces for test (#5837)
Browse files Browse the repository at this point in the history
  • Loading branch information
feloy authored Jun 28, 2022
1 parent b9507c9 commit 2278569
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/integration/cmd_namespace_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
})
})
}
Expand Down

0 comments on commit 2278569

Please sign in to comment.