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

Massively reduce flakiness #309

Closed
wants to merge 1 commit into from

Conversation

MichaelChirico
Copy link
Contributor

Closes #308.

Also switch to expect_setequal() for readability. Note that recent {testthat} makes expect_setequal() more attractive:

r-lib/testthat#1657

@hfrick
Copy link
Member

hfrick commented Oct 10, 2023

Thank you but closing since it's outdated, see also #308 (comment)

@hfrick hfrick closed this Oct 10, 2023
@MichaelChirico
Copy link
Contributor Author

Oh, @hfrick, actually this PR changed a different test:

expect_equal(
sort(unique(value_sample(value_seq, 40))),
value_seq$values
)
})

Should I change it to use the same "test for subset" approach?

@hfrick
Copy link
Member

hfrick commented Oct 10, 2023

Oh, good catch! Yeah, would you make a fresh PR and change both of those expectations to that approach? If you want to go for using expect_in(), that would be a nice upgrade.

@github-actions
Copy link

This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.

@github-actions github-actions bot locked and limited conversation to collaborators Oct 25, 2023
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.

Test is flaky
2 participants