diff options
author | Wolfy-J <[email protected]> | 2018-06-05 23:17:14 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-06-05 23:17:14 +0300 |
commit | e594c7070aad609c4caeda760671aca00e638561 (patch) | |
tree | b7ecb76ceeba88e03635c238a67f237452c20524 /worker_test.go | |
parent | 6adaf713b47c9a3ab3a516e21d2d4ecf7f2075d6 (diff) |
fixing controlled descruction
Diffstat (limited to 'worker_test.go')
-rw-r--r-- | worker_test.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/worker_test.go b/worker_test.go index 362db1f6..cb88d797 100644 --- a/worker_test.go +++ b/worker_test.go @@ -13,6 +13,7 @@ func Test_GetState(t *testing.T) { w, err := NewPipeFactory().SpawnWorker(cmd) go func() { assert.NoError(t, w.Wait()) + assert.Equal(t, StateStopped, w.State().Value()) }() assert.NoError(t, err) @@ -20,7 +21,7 @@ func Test_GetState(t *testing.T) { assert.Equal(t, StateReady, w.State().Value()) w.Stop() - assert.Equal(t, StateStopped, w.State().Value()) + assert.Equal(t, StateStopping, w.State().Value()) } func Test_Echo(t *testing.T) { |