summaryrefslogtreecommitdiffstats
path: root/model/utils_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'model/utils_test.go')
-rw-r--r--model/utils_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/model/utils_test.go b/model/utils_test.go
index fd333b40c..411d7bf50 100644
--- a/model/utils_test.go
+++ b/model/utils_test.go
@@ -4,6 +4,7 @@
package model
import (
+ "net/http"
"strings"
"testing"
)
@@ -27,7 +28,7 @@ func TestRandomString(t *testing.T) {
}
func TestAppError(t *testing.T) {
- err := NewLocAppError("TestAppError", "message", nil, "")
+ err := NewAppError("TestAppError", "message", nil, "", http.StatusInternalServerError)
json := err.ToJson()
rerr := AppErrorFromJson(strings.NewReader(json))
if err.Message != rerr.Message {