Skip to content

Commit 5734524

Browse files
authored
give gitea time to calculate language stats (#11812)
1 parent 218d922 commit 5734524

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

integrations/api_repo_languages_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"net/http"
99
"net/url"
1010
"testing"
11+
"time"
1112

1213
"github.com/stretchr/testify/assert"
1314
)
@@ -34,6 +35,9 @@ func TestRepoLanguages(t *testing.T) {
3435
})
3536
session.MakeRequest(t, req, http.StatusFound)
3637

38+
// let gitea calculate language stats
39+
time.Sleep(time.Second)
40+
3741
// Save new file to master branch
3842
req = NewRequest(t, "GET", "/api/v1/repos/user2/repo1/languages")
3943
resp = session.MakeRequest(t, req, http.StatusOK)

0 commit comments

Comments
 (0)