Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make later_fd() tests more robust #202

Merged
merged 2 commits into from
Nov 27, 2024
Merged

Make later_fd() tests more robust #202

merged 2 commits into from
Nov 27, 2024

Conversation

shikokuchuo
Copy link
Collaborator

@shikokuchuo shikokuchuo commented Nov 26, 2024

@jcheng5 sorry I missed this - these tests have simply never failed before (including during many rhub runs), but is creating some noise on CRAN.

It's only the test without the 0.2 secs sleep before the run_now() that's failing. Technically, it's possible that the later_fd() thread hasn't sent the callback for execution yet.

As the other tests in that section are passing, I'm pretty sure it's just a timing issue.

I've also increased the sleeps to at least 0.2secs in a couple of other places to be safer.

EDIT: even better - switched all the sleeps to blocking run_now(1) where possible.

The CRAN check error seems to have solved itself within a few hours, but these more robust tests will prevent it coming back.

@jcheng5 jcheng5 merged commit d82ec07 into main Nov 27, 2024
16 checks passed
@jcheng5 jcheng5 deleted the fix-laterfd-tests branch November 27, 2024 21:49
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