summaryrefslogtreecommitdiffstats
path: root/modules/log/level_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/log/level_test.go')
-rw-r--r--modules/log/level_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/log/level_test.go b/modules/log/level_test.go
index 40f6310bfd..2f37e407a1 100644
--- a/modules/log/level_test.go
+++ b/modules/log/level_test.go
@@ -5,10 +5,10 @@
package log
import (
- "encoding/json"
"fmt"
"testing"
+ jsoniter "github.com/json-iterator/go"
"github.com/stretchr/testify/assert"
)
@@ -17,6 +17,7 @@ type testLevel struct {
}
func TestLevelMarshalUnmarshalJSON(t *testing.T) {
+ json := jsoniter.ConfigCompatibleWithStandardLibrary
levelBytes, err := json.Marshal(testLevel{
Level: INFO,
})