prometheus/cmd
Arve Knudsen a5f86c3fb6
cmd/prometheus: fix flaky TestQueryLog race condition (#17933)
Add waitForQueryLog helper that polls for query log entries to appear
before asserting, rather than reading the file immediately after making
a query. This fixes a race condition where the query log wasn't flushed
to disk before the test read the file.

The helper uses a 5 second timeout with 100ms polling intervals, which
is generous enough to handle slow CI environments while keeping the test
responsive.

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2026-01-27 09:02:16 +00:00
..
prometheus cmd/prometheus: fix flaky TestQueryLog race condition (#17933) 2026-01-27 09:02:16 +00:00
promtool tests(teststorage): Close Storage in the helper (#17902) 2026-01-23 08:41:35 +00:00