Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Xavi Garcia <[email protected]>
  • Loading branch information
0xavi0 committed Jan 30, 2025
1 parent 85c2ac3 commit fc28643
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/cmd/controller/gitops/reconciler/gitjob_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func getGitPollingCondition(gitrepo *fleetv1.GitRepo) (genericcondition.GenericC
return genericcondition.GenericCondition{}, false
}

func TestReconcile_ReturnsAndRequeuesAfterAddingFinalizer(t *testing.T) {
func TestReconcile_ReturnsAndDontRequeuesAfterAddingFinalizer(t *testing.T) {
mockCtrl := gomock.NewController(t)
defer mockCtrl.Finish()
scheme := runtime.NewScheme()
Expand Down Expand Up @@ -137,8 +137,8 @@ func TestReconcile_ReturnsAndRequeuesAfterAddingFinalizer(t *testing.T) {
if err != nil {
t.Errorf("unexpected error %v", err)
}
if !res.Requeue {
t.Errorf("expecting Requeue set to true, it was false")
if res.Requeue {
t.Errorf("expecting Requeue set to false, it was true")
}
}

Expand Down

0 comments on commit fc28643

Please sign in to comment.