diff options
Diffstat (limited to 'worker_test.go')
-rw-r--r-- | worker_test.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/worker_test.go b/worker_test.go index c22b1db2..61a2dd33 100644 --- a/worker_test.go +++ b/worker_test.go @@ -4,6 +4,7 @@ import ( "github.com/stretchr/testify/assert" "os/exec" "testing" + "time" ) func Test_GetState(t *testing.T) { @@ -168,6 +169,7 @@ func Test_Broken(t *testing.T) { }() defer func() { + time.Sleep(time.Second) err := w.Stop() assert.NoError(t, err) }() |