diff options
author | Wolfy-J <[email protected]> | 2018-06-06 12:41:49 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-06-06 12:41:49 +0300 |
commit | aefb8c50d2c691cac113d9ccbbfbcbd30635ee6a (patch) | |
tree | fc5ecf4301c191ef503ca41058882ed5e8bc13d3 /errors_test.go | |
parent | f762cd2bff2fa35e32bc4502c97d2ee0984397b7 (diff) |
Cs and refactoring
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()) +} |