Skip to content

Commit

Permalink
fix the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
mimowo committed Feb 14, 2024
1 parent b641555 commit 9937612
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pkg/controller/job/job_controller_test.go
Expand Up @@ -2406,9 +2406,13 @@ func TestSyncJobWhenManagedByLabel(t *testing.T) {
actual = job
return job, nil
}
sharedInformerFactory.Batch().V1().Jobs().Informer().GetIndexer().Add(job)
if err := sharedInformerFactory.Batch().V1().Jobs().Informer().GetIndexer().Add(job); err != nil {
t.Fatalf("error %w while adding the %v job to the index", err)
}

manager.syncJob(context.TODO(), testutil.GetKey(job, t))
if err := manager.syncJob(context.TODO(), testutil.GetKey(job, t)); err != nil {
t.Fatalf("error %w while reconciling the job %v", err, testutil.GetKey(job, t))
}

if diff := cmp.Diff(tc.wantStatus, actual.Status); diff != "" {
t.Errorf("Unexpected job status (-want,+got):\n%s", diff)
Expand Down

0 comments on commit 9937612

Please sign in to comment.