Skip to main content

Module test_util

Module test_util 

Source
Expand description

Test fixtures for v1.4.92 P1-D AuthRefresher.

Used by gateway/src/bridge/push_health.rs tests + future tests/integration_qot_login_health.rs. Gated behind test-util feature so production builds don’t pull these in.

Structs§

AlwaysErrRefresher
Always-fail refresher — increments counter + returns canned error.
AlwaysOkRefresher
Always-success refresher — increments a counter so test can assert “refresh_qot_login was called N times”.
SlowOkRefresher
Slow refresher — sleeps before returning. Use to test overlapping try_begin_attempt() race protection.