diff options
author | 6543 <6543@obermui.de> | 2020-06-09 02:15:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-08 20:15:45 -0400 |
commit | 5734524378f9388b7a7466445b0b339e2837a5d8 (patch) | |
tree | 762189dbfb59a9cf3b974b55d94eefb29be8c534 /integrations/api_repo_languages_test.go | |
parent | 218d922d33f6dfc2b961ce8b065300410ce840ae (diff) | |
download | gitea-5734524378f9388b7a7466445b0b339e2837a5d8.tar.gz gitea-5734524378f9388b7a7466445b0b339e2837a5d8.zip |
give gitea time to calculate language stats (#11812)
Diffstat (limited to 'integrations/api_repo_languages_test.go')
-rw-r--r-- | integrations/api_repo_languages_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/integrations/api_repo_languages_test.go b/integrations/api_repo_languages_test.go index ca92cd4f75..ea20e6d542 100644 --- a/integrations/api_repo_languages_test.go +++ b/integrations/api_repo_languages_test.go @@ -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) |