test(option-hook): accept stable drag-resize sync counts #137

Merged
barrettruth merged 1 commit from test/relayout-count-flake into main 2026-04-28 23:04:23 +00:00
barrettruth commented 2026-04-28 23:04:17 +00:00

Problem

The option_hook drag-resize count test is noisy because it asserts an exact relayout count even though the real regression boundary is whether resize sync fires duplicate relayouts.

Solution

Change the test to assert the sync hook still fires once while allowing the relayout count to settle anywhere up to one, which keeps duplicate-relayout coverage without depending on brittle timing.

## Problem The `option_hook` drag-resize count test is noisy because it asserts an exact relayout count even though the real regression boundary is whether resize sync fires duplicate relayouts. ## Solution Change the test to assert the sync hook still fires once while allowing the relayout count to settle anywhere up to one, which keeps duplicate-relayout coverage without depending on brittle timing.
Sign in to join this conversation.
No description provided.