summaryrefslogtreecommitdiff
path: root/worker_test.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-02-27 23:59:26 +0300
committerValery Piashchynski <[email protected]>2020-02-27 23:59:26 +0300
commit69ee8c03d58bb8eff74ced36b849295f316ee61b (patch)
tree1e27deeb4c6b5c97083d266bf80089e1aa386be6 /worker_test.go
parent460075733def8bc46af867af4991ca5dff94a982 (diff)
Test_Broket time.sleep
Diffstat (limited to 'worker_test.go')
-rw-r--r--worker_test.go2
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)
}()