summaryrefslogtreecommitdiff
path: root/error_test.go
blob: e8fa62b4663848b721e31d1e8079f524a0b72ad6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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())
}