Skip to content
This repository was archived by the owner on Apr 27, 2026. It is now read-only.

test: fix reactor state reset after twisted.trial tests - #1824

Closed
roshii wants to merge 1 commit into
JoinMarket-Org:masterfrom
roshii:test/reactor-cleanup
Closed

test: fix reactor state reset after twisted.trial tests#1824
roshii wants to merge 1 commit into
JoinMarket-Org:masterfrom
roshii:test/reactor-cleanup

Conversation

@roshii

@roshii roshii commented Nov 15, 2025

Copy link
Copy Markdown
Contributor

Adds a global pytest fixture to reset the reactor's _startedBefore flag after twisted.trial tests, allowing subsequent tests to use the reactor.
Also cancels pending DelayedCalls in test_irc_messaging.py to prevent DirtyReactorAggregateError.

@roshii
roshii marked this pull request as draft November 15, 2025 15:45
@roshii
roshii force-pushed the test/reactor-cleanup branch 2 times, most recently from b939874 to 2e807b2 Compare November 15, 2025 16:31
@roshii
roshii force-pushed the test/reactor-cleanup branch from 2e807b2 to 3ec6bf9 Compare November 15, 2025 18:16
@roshii roshii closed this Nov 20, 2025
@roshii
roshii deleted the test/reactor-cleanup branch November 20, 2025 20:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant