Browse Source

give gitea time to calculate language stats (#11812)

tags/v1.13.0-rc1
6543 GitHub 5 years ago
parent
commit
376175583b
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      integrations/api_repo_languages_test.go

+ 4
- 0
integrations/api_repo_languages_test.go View File

@@ -8,6 +8,7 @@ import (
"net/http"
"net/url"
"testing"
"time"

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

// let gitea calculate language stats
time.Sleep(time.Second)

// Save new file to master branch
req = NewRequest(t, "GET", "/api/v1/repos/user2/repo1/languages")
resp = session.MakeRequest(t, req, http.StatusOK)


Loading…
Cancel
Save