Skip to content

Commit

Permalink
test: fix TestJobEndpoint_Scale_BatchJob
Browse files Browse the repository at this point in the history
  • Loading branch information
lgfa29 committed May 8, 2023
1 parent 0a7c8be commit 10c1553
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nomad/job_endpoint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7823,7 +7823,7 @@ func TestJobEndpoint_Scale_SystemJob(t *testing.T) {
state := testServer.fsm.State()

mockSystemJob := mock.SystemJob()
must.NoError(t, state.UpsertJob(structs.MsgTypeTestSetup, 10, nil, mockSystemJob))
must.NoError(t, state.UpsertJob(structs.MsgTypeTestSetup, 10, mockSystemJob))

scaleReq := &structs.JobScaleRequest{
JobID: mockSystemJob.ID,
Expand Down Expand Up @@ -7851,7 +7851,7 @@ func TestJobEndpoint_Scale_BatchJob(t *testing.T) {
state := testServer.fsm.State()

mockBatchJob := mock.BatchJob()
must.NoError(t, state.UpsertJob(structs.MsgTypeTestSetup, 10, nil, mockBatchJob))
must.NoError(t, state.UpsertJob(structs.MsgTypeTestSetup, 10, mockBatchJob))

scaleReq := &structs.JobScaleRequest{
JobID: mockBatchJob.ID,
Expand Down

0 comments on commit 10c1553

Please sign in to comment.