summaryrefslogtreecommitdiff
path: root/pkg/worker/sync_worker_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/worker/sync_worker_test.go')
-rwxr-xr-xpkg/worker/sync_worker_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/pkg/worker/sync_worker_test.go b/pkg/worker/sync_worker_test.go
index df556e93..64580f9f 100755
--- a/pkg/worker/sync_worker_test.go
+++ b/pkg/worker/sync_worker_test.go
@@ -24,11 +24,10 @@ func Test_NotStarted_Exec(t *testing.T) {
sw := From(w)
- res, err := sw.Exec(payload.Payload{Body: []byte("hello")})
+ res, err := sw.Exec(&payload.Payload{Body: []byte("hello")})
assert.Error(t, err)
- assert.Nil(t, res.Body)
- assert.Nil(t, res.Context)
+ assert.Nil(t, res)
assert.Contains(t, err.Error(), "Process is not ready (inactive)")
}