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:
parent
95c8657f9e
commit
e5d9d2d045
7 changed files with 51 additions and 51 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue