Skip to content

Commit

Permalink
give gitea time to calculate language stats (#11812)
Browse files Browse the repository at this point in the history
  • Loading branch information
6543 authored Jun 9, 2020
1 parent 218d922 commit 5734524
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions integrations/api_repo_languages_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"net/http"
"net/url"
"testing"
"time"

"github.com/stretchr/testify/assert"
)
Expand All @@ -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)
Expand Down

0 comments on commit 5734524

Please sign in to comment.