Files
gitea-MIRROR/modules/indexer/code
silverwind c9273a5a59 test: wait for indexer startup before loading fixtures (#40467)
Integration tests load fixtures after the app starts, while the indexers
still initialize and populate in the background. A slow start indexed
every fixture repo or dropped early index updates, making search tests
flaky.

The indexer startup goroutines now join a WaitGroup that only the test
harness waits on. This replaces the issue indexer's `syncReindex` flag.
Also fixes a flaky `SyncDirs` test that relied on directory listing
order.

Assisted-by: Claude Code:claude-opus-5-5
2026-11-21 02:43:03 +00:00
..