Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions pkg/manager/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1092,9 +1092,14 @@ var _ = Describe("manger.Manager", func() {
msg := "controller log message"
m.GetControllerOptions().Logger.Info(msg)

Expect(messages).To(ContainElement(
ContainSubstring(msg),
))
Eventually(func(g Gomega) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As we had a race condition here I assume it's also necessary to use Eventually

lock.Lock()
defer lock.Unlock()

g.Expect(messages).To(ContainElement(
ContainSubstring(msg),
))
}).Should(Succeed())
})

It("should return both runnables and stop errors when both error", func() {
Expand Down
Loading