Skip to content

Conversation

@onevcat
Copy link
Owner

@onevcat onevcat commented Dec 18, 2025

Fixes an occasional CI failure in ImageDownloaderTests.testDownloadWithAsyncModifyingRequest caused by a race between Task {} scheduling (used only to flip a flag) and the download completion callback.

The test now uses two expectations and waits with enforceOrder: true so that downloadTaskStarted must be fulfilled before downloadCompleted.

@onevcat onevcat merged commit 681ab68 into master Dec 18, 2025
24 checks passed
@onevcat onevcat deleted the fix/flaky-async-modifier-test branch December 18, 2025 02: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.

2 participants