summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-01-28 15:03:34 +0300
committerWolfy-J <[email protected]>2018-01-28 15:03:34 +0300
commit316f00597c75f6d0b930da25305d27c377778ade (patch)
treeaff9ab0138b69feecb5f12a680bca11178e9366a
parentbb62198db284e0f6aa2722e3a8935190853820fb (diff)
minor CS
-rw-r--r--worker_test.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/worker_test.go b/worker_test.go
index 65adae28..af9ce663 100644
--- a/worker_test.go
+++ b/worker_test.go
@@ -42,6 +42,15 @@ func Test_Echo(t *testing.T) {
assert.Equal(t, "hello", res.String())
}
+func Test_NotStarted_String(t *testing.T) {
+ cmd := exec.Command("php", "tests/client.php", "echo", "pipes")
+
+ w, _ := newWorker(cmd)
+ assert.Contains(t, w.String(), "php tests/client.php echo pipes")
+ assert.Contains(t, w.String(), "inactive")
+ assert.Contains(t, w.String(), "numExecs: 0")
+}
+
func Test_String(t *testing.T) {
cmd := exec.Command("php", "tests/client.php", "echo", "pipes")