Skip to content

fix: poll async resolutions within the test harness#543

Open
doudou wants to merge 2 commits intotransition-to-runkitfrom
test_poll_async
Open

fix: poll async resolutions within the test harness#543
doudou wants to merge 2 commits intotransition-to-runkitfrom
test_poll_async

Conversation

@doudou
Copy link
Member

@doudou doudou commented Feb 5, 2026

Depends on:

So far, if code executed during the test called apply_requirement_modifications,
the test would have created an async resolution but never resolved it. This
interferes with the rest of the test, and in particular if the test relies on
connection management (which is "paused" during resolution)

Make sure the expectation harness calls async_poll to finish the resolution

@doudou doudou requested review from jhonasiv and wvmcastro February 5, 2026 18:16

Choose a reason for hiding this comment

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

This refactor was indispensable or "just" an improvement on readability and responsibility?

Comment on lines +21 to +22
it "finishes within the test the resolutions " \
"created during the generation block" do

Choose a reason for hiding this comment

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

replicate the test for "finishes at the end"

doudou added 2 commits March 5, 2026 21:11
So far, if code executed during the test called apply_requirement_modifications,
the test would have created an async resolution but never resolved it. This
interferes with the rest of the test, and in particular if the test relies on
connection management (which is "paused" during resolution)

Make sure the expectation harness calls async_poll to finish the resolution
@doudou doudou force-pushed the test_poll_async branch from 156cb64 to e040918 Compare March 6, 2026 00:12
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.

3 participants