summaryrefslogtreecommitdiff
path: root/plugins/jobs/structs/job_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jobs/structs/job_test.go')
-rw-r--r--plugins/jobs/structs/job_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/jobs/structs/job_test.go b/plugins/jobs/structs/job_test.go
index 92f78081..0aa5b177 100644
--- a/plugins/jobs/structs/job_test.go
+++ b/plugins/jobs/structs/job_test.go
@@ -3,6 +3,7 @@ package structs
import (
"testing"
+ "github.com/spiral/roadrunner/v2/utils"
"github.com/stretchr/testify/assert"
)
@@ -13,7 +14,7 @@ func TestJob_Body(t *testing.T) {
}
func TestJob_Context(t *testing.T) {
- j := &Job{Job: "job", Options: &Options{ID: "id"}}
+ j := &Job{Job: "job", Options: &Options{ID: utils.AsStringPtr("id")}}
assert.Equal(t, []byte(`{"id":"id","job":"job"}`), j.Context())
}