summaryrefslogtreecommitdiff
path: root/worker_test.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-11-26 12:55:50 +0300
committerValery Piashchynski <[email protected]>2020-11-26 12:55:50 +0300
commitc765c70c1ff628044ccae15a24d0e200bb9304cb (patch)
treeb23fbd875dd624e95bb54e193f1d56cb41d9283d /worker_test.go
parent574f351aaecdee1176b9700bb6d7eb61fe170906 (diff)
Remove context from Wait in all tests
Diffstat (limited to 'worker_test.go')
-rwxr-xr-xworker_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/worker_test.go b/worker_test.go
index b8bd4c8b..e82d383e 100755
--- a/worker_test.go
+++ b/worker_test.go
@@ -15,7 +15,7 @@ func Test_GetState(t *testing.T) {
w, err := NewPipeFactory().SpawnWorkerWithContext(ctx, cmd)
go func() {
- assert.NoError(t, w.Wait(ctx))
+ assert.NoError(t, w.Wait())
assert.Equal(t, StateStopped, w.State().Value())
}()
@@ -38,7 +38,7 @@ func Test_Kill(t *testing.T) {
wg.Add(1)
go func() {
defer wg.Done()
- assert.Error(t, w.Wait(ctx))
+ assert.Error(t, w.Wait())
// TODO changed from stopped, discuss
assert.Equal(t, StateErrored, w.State().Value())
}()