diff options
Diffstat (limited to 'pool_test.go')
-rw-r--r-- | pool_test.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pool_test.go b/pool_test.go index e02993b0..0ce7be26 100644 --- a/pool_test.go +++ b/pool_test.go @@ -29,6 +29,17 @@ func Test_NewPool(t *testing.T) { assert.NoError(t, err) } +func Test_Pool_Invalid(t *testing.T) { + p, err := NewPool( + func() *exec.Cmd { return exec.Command("php", "tests/invalid.php") }, + NewPipeFactory(), + cfg, + ) + + assert.Nil(t, p) + assert.Error(t, err) +} + func Test_ConfigError(t *testing.T) { p, err := NewPool( func() *exec.Cmd { return exec.Command("php", "tests/client.php", "echo", "pipes") }, |