summaryrefslogtreecommitdiff
path: root/pipe_factory_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'pipe_factory_test.go')
-rw-r--r--pipe_factory_test.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/pipe_factory_test.go b/pipe_factory_test.go
index 63cee6d4..27d1f74d 100644
--- a/pipe_factory_test.go
+++ b/pipe_factory_test.go
@@ -109,9 +109,7 @@ func Test_Pipe_Broken(t *testing.T) {
}()
defer func() {
err := w.Stop()
- if err != nil {
- t.Errorf("error stopping the worker: error %v", err)
- }
+ assert.Error(t, err)
}()
res, err := w.Exec(&Payload{Body: []byte("hello")})