diff options
author | Wolfy-J <[email protected]> | 2017-12-26 19:14:53 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2017-12-26 19:14:53 +0300 |
commit | e229d83dea4bbe9d0cfe6569c8fbe239690aafb9 (patch) | |
tree | 2d4887ffdb167d660b705415f0617458490d0b9f /error_test.go |
init
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()) +} |