mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 17:35:43 +03:00
Fix test
This commit is contained in:
@@ -49,7 +49,7 @@ func testTaskRunner(restarts bool) (*MockTaskStateUpdater, *TaskRunner) {
|
||||
|
||||
ctx := driver.NewExecContext(allocDir, alloc.ID)
|
||||
rp := structs.NewRestartPolicy(structs.JobTypeService)
|
||||
restartTracker := newRestartTracker(rp)
|
||||
restartTracker := newRestartTracker(rp, alloc.Job.Type)
|
||||
if !restarts {
|
||||
restartTracker = noRestartsTracker()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user