diff --git a/internal/http/rdcservice_test.go b/internal/http/rdcservice_test.go index 6a40f729b..31b318db3 100644 --- a/internal/http/rdcservice_test.go +++ b/internal/http/rdcservice_test.go @@ -208,21 +208,21 @@ func TestRDCService_PollJob(t *testing.T) { name: "job not found error from external API", client: rdc, jobID: "3", - expectedResp: job.Job{}, + expectedResp: job.Job{ID: "3"}, expectedErr: ErrJobNotFound, }, { name: "http status is not 200, but 401 from external API", client: rdc, jobID: "4", - expectedResp: job.Job{}, + expectedResp: job.Job{ID: "4"}, expectedErr: errors.New("unexpected statusCode: 401"), }, { name: "unexpected status code from external API", client: rdc, jobID: "333", - expectedResp: job.Job{}, + expectedResp: job.Job{ID: "333"}, expectedErr: errors.New("internal server error"), }, { diff --git a/internal/http/resto_test.go b/internal/http/resto_test.go index b9b58c283..cd42883c3 100644 --- a/internal/http/resto_test.go +++ b/internal/http/resto_test.go @@ -226,21 +226,21 @@ func TestResto_GetJobStatus(t *testing.T) { name: "user not found error from external API", client: resto, jobID: "3", - expectedResp: job.Job{}, + expectedResp: job.Job{ID: "3"}, expectedErr: ErrJobNotFound, }, { name: "http status is not 200, but 401 from external API", client: resto, jobID: "4", - expectedResp: job.Job{}, + expectedResp: job.Job{ID: "4"}, expectedErr: errors.New("job status request failed; unexpected response code:'401', msg:''"), }, { name: "unexpected status code from external API", client: resto, jobID: "333", - expectedResp: job.Job{}, + expectedResp: job.Job{ID: "333"}, expectedErr: errors.New("internal server error"), }, {