diff options
author | Valery Piashchynski <[email protected]> | 2020-10-26 11:50:12 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-10-26 11:50:12 +0300 |
commit | 9aae9e2009bad07ebdee73e1c6cf56901d07880a (patch) | |
tree | 0ad9537bd438c63719fb83343ab77fc4ab34eb83 /sync_worker_test.go | |
parent | db7695463e85faf3fba6a2767b2dfa6ef916785d (diff) |
Fix linters warnings
Diffstat (limited to 'sync_worker_test.go')
-rwxr-xr-x | sync_worker_test.go | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/sync_worker_test.go b/sync_worker_test.go index ad1513d7..7f969283 100755 --- a/sync_worker_test.go +++ b/sync_worker_test.go @@ -2,10 +2,11 @@ package roadrunner import ( "context" - "github.com/stretchr/testify/assert" "os/exec" "sync" "testing" + + "github.com/stretchr/testify/assert" ) func Test_Echo(t *testing.T) { @@ -165,23 +166,6 @@ func Test_Broken(t *testing.T) { assert.Contains(t, string(event.(WorkerEvent).Payload.([]byte)), "undefined_function()") wg.Done() }) - - //go func() { - // assert.NotNil(t, w) - // tt := time.NewTimer(time.Second * 10) - // defer wg.Done() - // for { - // select { - // case ev := <-w.Events(): - // assert.Contains(t, string(ev.Payload.([]byte)), "undefined_function()") - // return - // case <-tt.C: - // assert.Error(t, errors.New("no events from worker")) - // return - // } - // } - //}() - syncWorker, err := NewSyncWorker(w) if err != nil { t.Fatal(err) |