summaryrefslogtreecommitdiff
path: root/service/http/uploads_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'service/http/uploads_test.go')
-rw-r--r--service/http/uploads_test.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/service/http/uploads_test.go b/service/http/uploads_test.go
index 1890c02b..08177c72 100644
--- a/service/http/uploads_test.go
+++ b/service/http/uploads_test.go
@@ -5,8 +5,8 @@ import (
"context"
"crypto/md5"
"encoding/hex"
- "encoding/json"
"fmt"
+ json "github.com/json-iterator/go"
"github.com/spiral/roadrunner"
"github.com/stretchr/testify/assert"
"io"
@@ -424,7 +424,8 @@ func fileString(f string, errNo int, mime string) string {
v.Size = 0
}
- r, err := json.Marshal(v)
+ j := json.ConfigCompatibleWithStandardLibrary
+ r, err := j.Marshal(v)
if err != nil {
fmt.Println(fmt.Errorf("error marshalling fInfo, error: %v", err))
}