summaryrefslogtreecommitdiff
path: root/errors_test.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-06 12:41:49 +0300
committerWolfy-J <[email protected]>2018-06-06 12:41:49 +0300
commitaefb8c50d2c691cac113d9ccbbfbcbd30635ee6a (patch)
treefc5ecf4301c191ef503ca41058882ed5e8bc13d3 /errors_test.go
parentf762cd2bff2fa35e32bc4502c97d2ee0984397b7 (diff)
Cs and refactoring
Diffstat (limited to 'errors_test.go')
-rw-r--r--errors_test.go6
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())
+}