diff options
author | Valery Piashchynski <[email protected]> | 2020-02-27 18:05:39 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-02-27 18:05:39 +0300 |
commit | bcb39a19b9ac879953004ed54de71c0c1d903d63 (patch) | |
tree | 86a8d57be8d0b6c154b294a6beac83603ba8bae2 /pipe_factory_test.go | |
parent | 926f6f278362ca16ba649849708e9b03496fa41a (diff) |
Fix test_pipe_broken
Diffstat (limited to 'pipe_factory_test.go')
-rw-r--r-- | pipe_factory_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pipe_factory_test.go b/pipe_factory_test.go index 27d1f74d..14cf1272 100644 --- a/pipe_factory_test.go +++ b/pipe_factory_test.go @@ -4,6 +4,7 @@ import ( "github.com/stretchr/testify/assert" "os/exec" "testing" + "time" ) func Test_Pipe_Start(t *testing.T) { @@ -108,8 +109,9 @@ func Test_Pipe_Broken(t *testing.T) { assert.Contains(t, err.Error(), "undefined_function()") }() defer func() { + time.Sleep(time.Second) err := w.Stop() - assert.Error(t, err) + assert.NoError(t, err) }() res, err := w.Exec(&Payload{Body: []byte("hello")}) |