Skip to content

Commit

Permalink
t
Browse files Browse the repository at this point in the history
  • Loading branch information
lgfa29 committed Aug 17, 2022
1 parent f358482 commit 7a1415c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/allocrunner/taskrunner/task_runner_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2504,7 +2504,9 @@ func TestTaskRunner_UnregisterConsul_Retries(t *testing.T) {
tr, err := NewTaskRunner(conf)
require.NoError(t, err)
defer tr.Kill(context.Background(), structs.NewTaskEvent("cleanup"))
tr.Run()
go tr.Run()

testWaitForTaskToDie(t, tr)

state := tr.TaskState()
require.Equal(t, structs.TaskStateDead, state.State)
Expand Down

0 comments on commit 7a1415c

Please sign in to comment.