Fix test setup for FSMSnapshotRestore_Deployments to use a valid job that exists

This commit is contained in:
Preetha Appan 2018-05-31 14:39:39 -05:00
parent 5e787e2d72
commit 4134fcd2c7
No known key found for this signature in database
GPG Key ID: 9F7C19990A50EAFC
1 changed files with 6 additions and 0 deletions

View File

@ -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)