summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsocket_factory_test.go2
-rwxr-xr-xstatic_pool.go1
2 files changed, 1 insertions, 2 deletions
diff --git a/socket_factory_test.go b/socket_factory_test.go
index b664662c..f7b2e69a 100755
--- a/socket_factory_test.go
+++ b/socket_factory_test.go
@@ -116,7 +116,7 @@ func Test_Tcp_Failboot(t *testing.T) {
cmd := exec.Command("php", "tests/failboot.php")
- w, err2 := NewSocketServer(ls, time.Second * 5).SpawnWorkerWithContext(ctx, cmd)
+ w, err2 := NewSocketServer(ls, time.Second*5).SpawnWorkerWithContext(ctx, cmd)
assert.Nil(t, w)
assert.Error(t, err2)
assert.Contains(t, err2.Error(), "failboot")
diff --git a/static_pool.go b/static_pool.go
index 17ec605e..f64a2c9a 100755
--- a/static_pool.go
+++ b/static_pool.go
@@ -135,7 +135,6 @@ func (sp *StaticPool) Exec(p Payload) (Payload, error) {
}
return EmptyPayload, err
-
}
sw.State().Set(StateInvalid)