diff options
author | Wolfy-J <[email protected]> | 2019-05-03 13:10:40 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2019-05-03 13:10:40 +0300 |
commit | 29bae6225fc6cc9241c92f6dfb6f0ffe7de0f4e5 (patch) | |
tree | 3c521846e8e52fb68ea5dc790d4e50f50cff0e01 /util | |
parent | 1e38f34d0d4bca699bd2025dddeb6c66587b3246 (diff) |
testing watchers
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) |