diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/state_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/state_test.go b/util/state_test.go index 150f8533..5b5276be 100644 --- a/util/state_test.go +++ b/util/state_test.go @@ -42,10 +42,11 @@ func TestDeadWorker(t *testing.T) { DestroyTimeout: time.Second, }, }) + defer rr.Stop() assert.NoError(t, rr.Start()) w := rr.Workers()[0] - rr.Stop() + *w.Pid = 0 _, err := WorkerState(w) |