Skip to content

test(demo): flush pending Riverpod timers in receive_page_test - #145

Merged
reez merged 1 commit into
bitcoindevkit:mainfrom
MusabYK:fix/receive-page-pending-timer
Oct 5, 2026
Merged

reez merged 1 commit into
bitcoindevkit:mainfrom
MusabYK:fix/receive-page-pending-timer

Conversation

@MusabYK

@MusabYK MusabYK commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes a CI failure on Windows where receive_page_test.dart failed during teardown with AssertionError: !timersPending.

Cause

Updating Riverpod state during wallet setup schedules an async refresh timer (Timer(Duration.zero)). On Windows, await tester.pump() in pumpReceivePage left this zero-duration timer unhandled in the event loop prior to widget tree disposal.

Fix

Updated pumpReceivePage to use await tester.pumpAndSettle().

@reez reez left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 38f7eed

@reez
reez merged commit 77ec09b into bitcoindevkit:main Oct 5, 2026
7 checks passed
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.

2 participants