Skip to content

Commit

Permalink
fix(test) Recover on manager setup goroutine
Browse files Browse the repository at this point in the history
Signed-off-by: Pierre Péronnet <pierre.peronnet@corp.ovh.com>
  • Loading branch information
holyhope committed Jan 19, 2020
1 parent cc484d2 commit 061111f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ var _ = BeforeSuite(func(done Done) {
Expect(err).NotTo(HaveOccurred(), "failed to setup controller")

go func() {
defer GinkgoRecover()

err := mgr.Start(stopCh)
Expect(err).NotTo(HaveOccurred(), "failed to start manager")
}()
Expand Down

0 comments on commit 061111f

Please sign in to comment.