summaryrefslogtreecommitdiff
path: root/server_test.go
diff options
context:
space:
mode:
authorParamtamtam <[email protected]>2019-12-24 10:48:49 +0500
committerGitHub <[email protected]>2019-12-24 10:48:49 +0500
commitfbd2022729ab7ffe4eee8ba8b7357ba179e4d010 (patch)
treefa6b66b18259282b2efe00a41c445a3fa40aa701 /server_test.go
parent3f7d8bc007a4efdd48bb16253c2686006f0f9cda (diff)
parent75a817edcff22e721dcc3a7fa5590b866f630403 (diff)
Merge branch 'master' into master
Diffstat (limited to 'server_test.go')
-rw-r--r--server_test.go11
1 files changed, 8 insertions, 3 deletions
diff --git a/server_test.go b/server_test.go
index c973d634..9ab480b1 100644
--- a/server_test.go
+++ b/server_test.go
@@ -205,7 +205,10 @@ func TestServer_ReplacePool(t *testing.T) {
}
})
- rr.Reset()
+ err := rr.Reset()
+ if err != nil {
+ t.Errorf("error resetting the pool: error %v", err)
+ }
<-constructed
for _, w := range rr.Workers() {
@@ -239,9 +242,11 @@ func TestServer_ServerFailure(t *testing.T) {
rr.pool.(*StaticPool).cmd = func() *exec.Cmd {
return exec.Command("php", "tests/client.php", "echo", "broken-connection")
}
-
// killing random worker and expecting pool to replace it
- rr.Workers()[0].cmd.Process.Kill()
+ err := rr.Workers()[0].cmd.Process.Kill()
+ if err != nil {
+ t.Errorf("error killing the process: error %v", err)
+ }
<-failure
assert.True(t, true)