1
0
mirror of https://github.com/go-gitea/gitea synced 2024-11-14 01:35:54 +01:00
gitea/modules/indexer/stats
zeripath 793ce9dacf
Prevent intermittent failures in RepoIndexerTest (#19225)
The RepoIndexerTest is failing with considerable frequency due to a race inherrent in
its design. This PR adjust this test to avoid the reliance on waiting for the populate
repo indexer to run and forcibly adds the repo to the queue. It then flushes the queue.

It may be worth separating out the tests somewhat by testing the Index function
directly away from the queue however, this forceful method should solve the current
problem.

Signed-off-by: Andrew Thornton <art27@cantab.net>
2022-03-27 15:05:01 +08:00
..
db.go Prevent Stats Indexer reporting error if repo dir missing (#18870) 2022-02-24 23:22:09 -05:00
indexer_test.go Prevent intermittent failures in RepoIndexerTest (#19225) 2022-03-27 15:05:01 +08:00
indexer.go Move repository model into models/repo (#17933) 2021-12-10 09:27:50 +08:00
queue.go Pause queues (#15928) 2022-01-22 21:22:14 +00:00