Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriziopandini committed Jan 18, 2021
1 parent c69f3e8 commit aa7a57d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions exp/controllers/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ var _ = BeforeSuite(func(done Done) {
Expect((&MachinePoolReconciler{
Client: testEnv,
recorder: testEnv.GetEventRecorderFor("machinepool-controller"),
}).SetupWithManager(ctx, testEnv.Manager, controller.Options{MaxConcurrentReconciles: 1})).To(Succeed())
}).SetupWithManager(ctx, testEnv.Manager, controller.Options{MaxConcurrentReconciles: 1})).To(Succeed(), "Failed to setup the MachinePoolReconciler")

By("starting the manager")
go func() {
defer GinkgoRecover()
Expect(testEnv.StartManager(ctx)).To(Succeed())
Expect(testEnv.StartManager(ctx)).To(Succeed(), "Failed to start test env")
}()

close(done)
Expand All @@ -66,6 +66,6 @@ var _ = BeforeSuite(func(done Done) {
var _ = AfterSuite(func() {
if testEnv != nil {
By("tearing down the test environment")
Expect(testEnv.Stop()).To(Succeed())
Expect(testEnv.Stop()).To(Succeed(), "Failed to stop test env")
}
})
6 changes: 5 additions & 1 deletion util/patch/patch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,12 @@ var _ = Describe("Patch Helper", func() {
readyBefore := conditions.Get(obj, clusterv1.ReadyCondition)
readyAfter := conditions.Get(objAfter, clusterv1.ReadyCondition)

if !cmp.Equal(readyBefore, readyAfter) {
By(cmp.Diff(readyBefore, readyAfter))
}

return cmp.Equal(readyBefore, readyAfter)
}, timeout).Should(BeTrue())
}, timeout).Should(BeTrue(), "Failed to validating the object has been updated")
})

})
Expand Down

0 comments on commit aa7a57d

Please sign in to comment.