mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-22 09:54:24 +01:00
give gitea time to calculate language stats (#11812)
This commit is contained in:
parent
218d922d33
commit
5734524378
|
@ -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…
Reference in a new issue