diff options
Diffstat (limited to 'worker_test.go')
-rw-r--r-- | worker_test.go | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/worker_test.go b/worker_test.go index 6e65c998..2e3bc111 100644 --- a/worker_test.go +++ b/worker_test.go @@ -4,7 +4,6 @@ import ( "github.com/stretchr/testify/assert" "os/exec" "testing" - "time" ) func Test_GetState(t *testing.T) { @@ -191,20 +190,4 @@ func Test_NumExecs(t *testing.T) { w.Exec(&Payload{Body: []byte("hello")}) assert.Equal(t, int64(3), w.State().NumExecs()) -} - -func Test_StateUpdated(t *testing.T) { - cmd := exec.Command("php", "php-src/tests/client.php", "echo", "pipes") - - w, _ := NewPipeFactory().SpawnWorker(cmd) - go func() { - assert.NoError(t, w.Wait()) - }() - defer w.Stop() - - tm := time.Now() - time.Sleep(time.Millisecond) - - w.Exec(&Payload{Body: []byte("hello")}) - assert.True(t, w.State().Updated().After(tm)) -} +}
\ No newline at end of file |