summaryrefslogtreecommitdiff
path: root/worker_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'worker_test.go')
-rw-r--r--worker_test.go3
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) {