summaryrefslogtreecommitdiff
path: root/worker_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'worker_test.go')
-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")