summaryrefslogtreecommitdiff
path: root/worker_test.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-11 12:13:36 +0300
committerWolfy-J <[email protected]>2018-06-11 12:13:36 +0300
commitefcddcc8d1b676c64cbd41a5f645bd046ba416d7 (patch)
tree8e51cde97920e62fcb03ad955933194d4af1b809 /worker_test.go
parent4e54066384b1f2cfb6684c781976d3a9288f1f7e (diff)
no more updated
Diffstat (limited to 'worker_test.go')
-rw-r--r--worker_test.go19
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