We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 662436c commit 066e268Copy full SHA for 066e268
helper/converter_test.go
@@ -134,6 +134,12 @@ func TestToJson(t *testing.T) {
134
}
135
136
func TestToJsonWithRegex(t *testing.T) {
137
+ // SortMapKeys will cause performance losses, only enabled during test
138
+ jsonEncoder = sonic.ConfigStd
139
+ // use same time zone to ensure RedisObject.Expiration has same json value
140
+ var cstZone = time.FixedZone("CST", 8*3600)
141
+ time.Local = cstZone
142
+
143
err := os.MkdirAll("tmp", os.ModePerm)
144
if err != nil {
145
return
0 commit comments