prometheus/rules
Arve Knudsen 3d2647dc6f
rules: fix flaky TestAsyncRuleEvaluation on Windows (#17965)
Convert all timing-sensitive subtests of TestAsyncRuleEvaluation to use
synctest for deterministic testing. This fixes flakiness on Windows
caused by timer granularity and scheduling variance.

The timing assertions are preserved using synctest's fake time, which
allows accurate verification of sequential vs concurrent execution
timing without relying on wall-clock time.

Fixes #17961

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
2026-02-16 10:30:46 +01:00
..
fixtures Optimise concurrent rule evaluation for rules querying ALERTS and ALERTS_FOR_STATE (#17064) 2025-08-21 16:57:57 +02:00
alerting.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
alerting_test.go Refactor parse.go into an instance-based Parser interface 2026-02-11 11:21:49 +01:00
group.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
group_test.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
manager.go Refactor parse.go into an instance-based Parser interface 2026-02-11 11:21:49 +01:00
manager_test.go rules: fix flaky TestAsyncRuleEvaluation on Windows (#17965) 2026-02-16 10:30:46 +01:00
origin.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
origin_test.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
recording.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00
recording_test.go Refactor parse.go into an instance-based Parser interface 2026-02-11 11:21:49 +01:00
rule.go Remove copyright date from headers (#17785) 2026-01-05 13:46:21 +01:00