Skip to content

Commit 33dabbd

Browse files
committed
Chore: Update to reflect changes in return parameters
1 parent 29de4ac commit 33dabbd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/jobs/job_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func TestJobCollect_Success(t *testing.T) {
3737
},
3838
}
3939

40-
err, skipped := job.Collect(dc)
40+
err, skipped, _ := job.Collect(dc)
4141
if err != nil {
4242
t.Fatalf("expected no error, got %v", err)
4343
}
@@ -67,7 +67,7 @@ func TestJobCollect_Skipped(t *testing.T) {
6767
ch <- JobResult{Skipped: true}
6868
},
6969
}
70-
err, skipped := job.Collect(dc)
70+
err, skipped, _ := job.Collect(dc)
7171
if err != nil {
7272
t.Fatalf("expected no error, got %v", err)
7373
}
@@ -89,7 +89,7 @@ func TestJobCollect_Error(t *testing.T) {
8989
ch <- JobResult{Error: errors.New("fail")}
9090
},
9191
}
92-
err, skipped := job.Collect(dc)
92+
err, skipped, _ := job.Collect(dc)
9393
if err == nil || err.Error() != "fail" {
9494
t.Fatalf("expected error 'fail', got %v", err)
9595
}
@@ -112,7 +112,7 @@ func TestJobCollect_Timeout(t *testing.T) {
112112
ch <- JobResult{}
113113
},
114114
}
115-
err, skipped := job.Collect(dc)
115+
err, skipped, _ := job.Collect(dc)
116116
if err == nil {
117117
t.Fatalf("expected timeout error, got nil")
118118
}

0 commit comments

Comments
 (0)