summaryrefslogtreecommitdiff
path: root/socket_factory_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'socket_factory_test.go')
-rw-r--r--socket_factory_test.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/socket_factory_test.go b/socket_factory_test.go
index 9f74cf8c..8beb3fc6 100644
--- a/socket_factory_test.go
+++ b/socket_factory_test.go
@@ -370,15 +370,13 @@ func Test_Unix_Broken(t *testing.T) {
w, _ := NewSocketFactory(ls, time.Minute).SpawnWorker(cmd)
go func() {
err := w.Wait()
-
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")})