Skip to content

Conversation

@link2xt
Copy link
Collaborator

@link2xt link2xt commented Nov 14, 2025

Closes #7447

@link2xt link2xt force-pushed the link2xt/test-background-fetch branch 2 times, most recently from 2f2a0a5 to a9af4e4 Compare November 15, 2025 00:52
@link2xt link2xt force-pushed the link2xt/test-background-fetch branch from a9af4e4 to 8221914 Compare November 15, 2025 05:49
@link2xt link2xt marked this pull request as ready for review November 15, 2025 06:18
# Stopping background fetch immediately after starting
# does not result in any errors.
background_fetch_future = dc.background_fetch.future(300)
dc.stop_background_fetch()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this reliable? Core's stop_background_fetch() does nothing if background_fetch_interrupt_sender is None. Maybe sleep for a second before stopping?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If we sleep for a second, then maybe background fetch has already stopped. I don't know how to test stop_background_fetch(), so did something.

@link2xt link2xt merged commit e8823fc into main Nov 16, 2025
29 checks passed
@link2xt link2xt deleted the link2xt/test-background-fetch branch November 16, 2025 05:59
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.

Add a test for background_fetch

4 participants