Skip to main content

DEFAULT_MAX_STEPS

Constant DEFAULT_MAX_STEPS 

Source
pub const DEFAULT_MAX_STEPS: u32 = 64;
Expand description

Default step budget for TestHarness::run before it treats a non-draining event queue as a stuck app and panics.

Sized to comfortably clear any single queued gesture (a click is two events, the two-frame rule costs a frame each), with headroom, while still failing fast on an app that never drains its input. The exact value is picked by feel, not measured; a test with a legitimately long settle should call settle with a larger budget rather than raise this shared default.