mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 02:15:43 +03:00
Fix test setup for FSMSnapshotRestore_Deployments to use a valid job that exists
This commit is contained in:
@@ -2570,6 +2570,12 @@ func TestFSM_SnapshotRestore_Deployments(t *testing.T) {
|
||||
state := fsm.State()
|
||||
d1 := mock.Deployment()
|
||||
d2 := mock.Deployment()
|
||||
|
||||
j := mock.Job()
|
||||
d1.JobID = j.ID
|
||||
d2.JobID = j.ID
|
||||
|
||||
state.UpsertJob(999, j)
|
||||
state.UpsertDeployment(1000, d1)
|
||||
state.UpsertDeployment(1001, d2)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user