From 03524de50e068fdac3a88f66e01486940be07ab8 Mon Sep 17 00:00:00 2001 From: Mahmood Ali Date: Sun, 31 May 2020 10:33:03 -0400 Subject: [PATCH] tests: Run a task long enough to be restartable --- client/alloc_endpoint_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/alloc_endpoint_test.go b/client/alloc_endpoint_test.go index 246fa79c7..e6d890e38 100644 --- a/client/alloc_endpoint_test.go +++ b/client/alloc_endpoint_test.go @@ -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, ""))