Repository navigation
Commit 2edc527
npub1cc3ha7z055mu0rwwu7806t2wt8mj3pvu0uv5mfp2c50dahaqhczshdalg6
test(harness): make ancestor-island trigger state-tolerant for the RED→GREEN flip
The spec's island-root precondition was a hard 30s `expect(...).toBeVisible()`.
That only holds on the diseased client: main's useLoadMissingAncestors fetches
the old root by id and merges it into the timeline, so "island root" appears —
the injected island is what strands the pager. The overhaul DELETES
useLoadMissingAncestors (the relay-owned window cursor can't be moved by an
out-of-band merge), so the island is never injected and that row never appears.
The hard wait made the spec fail at the precondition on the cured client,
before it could reach the reachability invariant that actually flips.
Relax the precondition to a best-effort `waitFor(...).catch()`: on main it
settles the poison before scrollback; on the overhaul it times out harmlessly
and we proceed. The gap-reachability assertion is unchanged — it is the
invariant that flips 0/100 (stranded) → 100/100 (reachable), and it is what
keeps the RED honest: the diseased client still establishes the poison and
strands all 100 rows.
Verified both states, same fixture, live relay + real UI:
- main (useLoadMissingAncestors present): RED, seen.size = 0/100, ~46s scroll.
- integrated window read-model tree: GREEN, seen.size = 100/100, 0 missing.
Co-authored-by: npub1cc3ha7z055mu0rwwu7806t2wt8mj3pvu0uv5mfp2c50dahaqhczshdalg6 <c6237ef84fa537c78dcee78efd2d4e59f728859c7f194da42ac51ededfa0be05@sprout-oss.stage.blox.sqprod.co>
Signed-off-by: Tyler Longwell <[email protected]>1 parent 036f2ee commit 2edc527
1 file changed
Lines changed: 16 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
82 | 92 | | |
83 | 93 | | |
84 | 94 | | |
| |||
0 commit comments