unit test for job eval should detach

This commit is contained in:
Preetha Appan 2018-05-10 15:30:44 -05:00
parent e4ea18aee7
commit 24115138e8
No known key found for this signature in database
GPG Key ID: 9F7C19990A50EAFC
1 changed files with 1 additions and 1 deletions

View File

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