summaryrefslogtreecommitdiffstats
path: root/integrations/repo_commits_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'integrations/repo_commits_test.go')
-rw-r--r--integrations/repo_commits_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/integrations/repo_commits_test.go b/integrations/repo_commits_test.go
index f26960271a..042849db7c 100644
--- a/integrations/repo_commits_test.go
+++ b/integrations/repo_commits_test.go
@@ -5,7 +5,6 @@
package integrations
import (
- "encoding/json"
"net/http"
"net/http/httptest"
"path"
@@ -14,6 +13,7 @@ import (
"code.gitea.io/gitea/modules/setting"
api "code.gitea.io/gitea/modules/structs"
+ jsoniter "github.com/json-iterator/go"
"github.com/stretchr/testify/assert"
)
@@ -82,6 +82,7 @@ func doTestRepoCommitWithStatus(t *testing.T, state string, classes ...string) {
}
func testRepoCommitsWithStatus(t *testing.T, resp *httptest.ResponseRecorder, state string) {
+ json := jsoniter.ConfigCompatibleWithStandardLibrary
decoder := json.NewDecoder(resp.Body)
statuses := []*api.CommitStatus{}
assert.NoError(t, decoder.Decode(&statuses))