summaryrefslogtreecommitdiffstats
path: root/modules/log/console_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/log/console_test.go')
-rw-r--r--modules/log/console_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/log/console_test.go b/modules/log/console_test.go
index a028b5b875..e7ed07123b 100644
--- a/modules/log/console_test.go
+++ b/modules/log/console_test.go
@@ -17,7 +17,8 @@ func TestConsoleLoggerBadConfig(t *testing.T) {
logger := NewConsoleLogger()
err := logger.Init("{")
- assert.Equal(t, "unexpected end of JSON input", err.Error())
+ assert.Error(t, err)
+ assert.Contains(t, err.Error(), "Unable to parse JSON")
logger.Close()
}