summaryrefslogtreecommitdiff
path: root/socket_factory_test.go
diff options
context:
space:
mode:
authorAnton Titov <[email protected]>2019-12-23 14:52:06 +0300
committerGitHub <[email protected]>2019-12-23 14:52:06 +0300
commit921e1f55e23ab75b8250045916c8d1ffad1b8bde (patch)
tree00b16331b9ff3b3b846ba22989dddde721cc959d /socket_factory_test.go
parent921354df1aa4687837e3ba6ac0eb04d39321c149 (diff)
parent2093cb9058f94668fff0a97beb76b0cab66c7b63 (diff)
Merge branch 'master' into Fix_warning_and_issues
Diffstat (limited to 'socket_factory_test.go')
-rw-r--r--socket_factory_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/socket_factory_test.go b/socket_factory_test.go
index e718f6c2..9f74cf8c 100644
--- a/socket_factory_test.go
+++ b/socket_factory_test.go
@@ -191,11 +191,10 @@ func Test_Tcp_Broken(t *testing.T) {
assert.Error(t, err)
assert.Contains(t, err.Error(), "undefined_function()")
}()
+
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")})