worker/server: rename JobStatus() to JobInfo()

Since the `jobStatus` functions return a `JobInfo`
struct that contains the `JobStatus`, it makes sense
to rename the function names for the sake of consistency.
This commit is contained in:
Gianluca Zuccarelli 2022-07-26 12:48:47 +01:00 committed by Tomáš Hozza
parent 95c8657f9e
commit e5d9d2d045
7 changed files with 51 additions and 51 deletions

View file

@ -57,7 +57,7 @@ func TestComposeStatusFromLegacyError(t *testing.T) {
err = api.workers.FinishJob(token, rawResult)
require.NoError(t, err)
jobInfo, err := api.workers.OSBuildJobStatus(jobId, &jobResult)
jobInfo, err := api.workers.OSBuildJobInfo(jobId, &jobResult)
require.NoError(t, err)
state := composeStateFromJobStatus(jobInfo.JobStatus, &jobResult)
@ -100,7 +100,7 @@ func TestComposeStatusFromJobError(t *testing.T) {
err = api.workers.FinishJob(token, rawResult)
require.NoError(t, err)
jobInfo, err := api.workers.OSBuildJobStatus(jobId, &jobResult)
jobInfo, err := api.workers.OSBuildJobInfo(jobId, &jobResult)
require.NoError(t, err)
state := composeStateFromJobStatus(jobInfo.JobStatus, &jobResult)