summaryrefslogtreecommitdiff
path: root/pool_test.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-01-28 15:06:35 +0300
committerWolfy-J <[email protected]>2018-01-28 15:06:35 +0300
commita28ac27bd762ad65ff4cbbeaa8e2b03c9f0d1c32 (patch)
tree18dfc5c14615dc1916cdba20bc8a0642e2946d90 /pool_test.go
parent13dd4e6e8f84b67c5fe8397c183d1b88aed4c780 (diff)
minor CS
Diffstat (limited to 'pool_test.go')
-rw-r--r--pool_test.go11
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") },