tests: Run a task long enough to be restartable

This commit is contained in:
Mahmood Ali
2020-05-31 10:33:03 -04:00
parent c4416b26d3
commit 03524de50e

View File

@@ -40,7 +40,7 @@ func TestAllocations_Restart(t *testing.T) {
Mode: nstructs.RestartPolicyModeFail,
}
a.Job.TaskGroups[0].Tasks[0].Config = map[string]interface{}{
"run_for": "10ms",
"run_for": "10s",
}
require.Nil(client.addAlloc(a, ""))