summaryrefslogtreecommitdiff
path: root/errors_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'errors_test.go')
-rw-r--r--errors_test.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/errors_test.go b/errors_test.go
new file mode 100644
index 00000000..9b0fa53e
--- /dev/null
+++ b/errors_test.go
@@ -0,0 +1,11 @@
+package roadrunner
+
+import (
+ "github.com/stretchr/testify/assert"
+ "testing"
+)
+
+func Test_JobError_Error(t *testing.T) {
+ e := JobError([]byte("error"))
+ assert.Equal(t, "error", e.Error())
+}