Skip to content

fix(selftest): stabilize InfiniteBasic_TotalKnown#158

Merged
codemonkeychris merged 1 commit into
mainfrom
fix/selftest-infinitebasic-totalknown-flake
May 5, 2026
Merged

fix(selftest): stabilize InfiniteBasic_TotalKnown#158
codemonkeychris merged 1 commit into
mainfrom
fix/selftest-infinitebasic-totalknown-flake

Conversation

@codemonkeychris
Copy link
Copy Markdown
Collaborator

Summary

Test plan

  • 100× Reactor.AppTests.Host --self-test sweep locally (in progress)

🤖 Generated with Claude Code

Flake surfaced in CI (run 25404199901 on PR #154):

  not ok InfiniteBasic_TotalKnown () - assertion failed

Same shape as #149 (Resource_FetchedData) and #152 (Mutation_Completed):
the fetcher's Task.Delay(10) resolves during a Render()'s 16ms wall-clock
breathing-room delay, then schedules an Apply continuation on the
dispatcher (which sets TotalCount inside ApplyPageResult) just after
WaitForIdleAsync returned. The sibling Page1Loaded check still passes
because pageFetches is incremented inside FetchPageAsync before it
returns, and Items.Count >= 25 is satisfied via _highestInflightEnd from
the in-flight slot — neither requires the Apply continuation to have
run.

Pump a third time to drain the queued re-render before the assertion.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@codemonkeychris codemonkeychris merged commit 3b43565 into main May 5, 2026
6 checks passed
@codemonkeychris codemonkeychris deleted the fix/selftest-infinitebasic-totalknown-flake branch May 28, 2026 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant