diff options
Diffstat (limited to 'errors_test.go')
-rw-r--r-- | errors_test.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/errors_test.go b/errors_test.go index 9b0fa53e..d7b2feb4 100644 --- a/errors_test.go +++ b/errors_test.go @@ -3,9 +3,15 @@ package roadrunner import ( "github.com/stretchr/testify/assert" "testing" + "github.com/go-errors/errors" ) func Test_JobError_Error(t *testing.T) { e := JobError([]byte("error")) assert.Equal(t, "error", e.Error()) } + +func Test_WorkerError_Error(t *testing.T) { + e := WorkerError{Worker: nil, Caused: errors.New("error")} + assert.Equal(t, "error", e.Error()) +} |