summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-05-03 13:10:40 +0300
committerWolfy-J <[email protected]>2019-05-03 13:10:40 +0300
commit29bae6225fc6cc9241c92f6dfb6f0ffe7de0f4e5 (patch)
tree3c521846e8e52fb68ea5dc790d4e50f50cff0e01 /util
parent1e38f34d0d4bca699bd2025dddeb6c66587b3246 (diff)
testing watchers
Diffstat (limited to 'util')
-rw-r--r--util/state_test.go3
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)