diff --git a/internal/controllers/machine/machine_controller_phases_test.go b/internal/controllers/machine/machine_controller_phases_test.go index 34762a459c5b..fbfb18bb98cf 100644 --- a/internal/controllers/machine/machine_controller_phases_test.go +++ b/internal/controllers/machine/machine_controller_phases_test.go @@ -139,7 +139,7 @@ func TestReconcileMachinePhases(t *testing.T) { }, 10*time.Second).Should(BeTrue()) // Wait until InfraMachine has the ownerReference. - g.Eventually(func() bool { + g.Eventually(func(g Gomega) bool { if err := env.Get(ctx, client.ObjectKeyFromObject(infraMachine), infraMachine); err != nil { return false }