diff options
Diffstat (limited to 'error_test.go')
-rw-r--r-- | error_test.go | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/error_test.go b/error_test.go new file mode 100644 index 00000000..e8fa62b4 --- /dev/null +++ b/error_test.go @@ -0,0 +1,16 @@ +package roadrunner + +import ( + "github.com/stretchr/testify/assert" + "testing" +) + +func TestWorkerError_Error(t *testing.T) { + e := WorkerError("error") + assert.Equal(t, "error", e.Error()) +} + +func TestJobError_Error(t *testing.T) { + e := JobError("error") + assert.Equal(t, "error", e.Error()) +} |