summaryrefslogtreecommitdiff
path: root/errors_test.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-06-05 23:17:14 +0300
committerWolfy-J <[email protected]>2018-06-05 23:17:14 +0300
commite594c7070aad609c4caeda760671aca00e638561 (patch)
treeb7ecb76ceeba88e03635c238a67f237452c20524 /errors_test.go
parent6adaf713b47c9a3ab3a516e21d2d4ecf7f2075d6 (diff)
fixing controlled descruction
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())
+}