diff options
author | Wolfy-J <[email protected]> | 2018-01-28 15:03:34 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-01-28 15:03:34 +0300 |
commit | 316f00597c75f6d0b930da25305d27c377778ade (patch) | |
tree | aff9ab0138b69feecb5f12a680bca11178e9366a /worker_test.go | |
parent | bb62198db284e0f6aa2722e3a8935190853820fb (diff) |
minor CS
Diffstat (limited to 'worker_test.go')
-rw-r--r-- | worker_test.go | 9 |
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") |