From 24115138e8884e487b3a84c1cb051ff2fada7857 Mon Sep 17 00:00:00 2001 From: Preetha Appan Date: Thu, 10 May 2018 15:30:44 -0500 Subject: [PATCH] unit test for job eval should detach --- command/job_eval_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command/job_eval_test.go b/command/job_eval_test.go index f6f8b2786..ef5019e36 100644 --- a/command/job_eval_test.go +++ b/command/job_eval_test.go @@ -90,7 +90,7 @@ func TestJobEvalCommand_Run(t *testing.T) { err = state.UpsertAllocs(12, []*structs.Allocation{alloc}) require.Nil(err) - if code := cmd.Run([]string{"-address=" + url, "-force-reschedule", job.ID}); code != 0 { + if code := cmd.Run([]string{"-address=" + url, "-force-reschedule", "-detach", job.ID}); code != 0 { t.Fatalf("expected exit 0, got: %d", code) }