summaryrefslogtreecommitdiff
path: root/static_pool_test.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-01-11 13:00:52 +0300
committerValery Piashchynski <[email protected]>2021-01-11 13:00:52 +0300
commitc4112cd214a9c7cbed82c82eefc75904fb42d1af (patch)
tree680cc5f0d3f9a0d78a944e026568af61c12bd87e /static_pool_test.go
parent5dc83ef5eee77f4d1ef557e5f8b566e75892680d (diff)
Update CI
Format imports and code Distinct internal and app errors
Diffstat (limited to 'static_pool_test.go')
-rw-r--r--static_pool_test.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/static_pool_test.go b/static_pool_test.go
index 59822186..e2181292 100644
--- a/static_pool_test.go
+++ b/static_pool_test.go
@@ -1,7 +1,6 @@
package roadrunner
import (
- "github.com/stretchr/testify/assert"
"log"
"os/exec"
"runtime"
@@ -10,6 +9,8 @@ import (
"sync"
"testing"
"time"
+
+ "github.com/stretchr/testify/assert"
)
var cfg = Config{
@@ -172,7 +173,6 @@ func Test_StaticPool_Broken_Replace(t *testing.T) {
p.Destroy()
}
-
func Test_StaticPool_Broken_FromOutside(t *testing.T) {
p, err := NewPool(
func() *exec.Cmd { return exec.Command("php", "tests/client.php", "echo", "pipes") },
@@ -238,7 +238,6 @@ func Test_StaticPool_AllocateTimeout(t *testing.T) {
}
}()
-
// to ensure that worker is already busy
time.Sleep(time.Millisecond * 10)
@@ -246,7 +245,7 @@ func Test_StaticPool_AllocateTimeout(t *testing.T) {
if err == nil {
t.Fatal("Test_StaticPool_AllocateTimeout exec should raise error")
}
- assert.Contains(t, err.Error(), "worker timeout")
+ assert.Contains(t, err.Error(), "unable to allocate worker")
<-done
p.Destroy()