From 69ee8c03d58bb8eff74ced36b849295f316ee61b Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Thu, 27 Feb 2020 23:59:26 +0300 Subject: Test_Broket time.sleep --- worker_test.go | 2 ++ 1 file changed, 2 insertions(+) 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) }() -- cgit v1.2.3