-
-
Notifications
You must be signed in to change notification settings - Fork 84
random warning on unit test #186
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
Comments
I haven't seen that before, but my first guess is that this is because the seed for generating the data is set on line 9 instead of line 1: bayesplot/tests/testthat/data-for-ppc-tests.R Lines 5 to 12 in b27d9b7
(Same issue with the script generating the data for the MCMC plot tests. ) I can't be sure this is the problem because I haven't seen that error, but either way we should probably be setting the seed before simulating data for the tests. I thought we were, but I guess not. Sorry about that. |
Alternatively, we could save the data for these tests in an rds or rda file and just load it in. |
Ok so this is related to tidyverse/ggplot2#3043 and is fixed by tidyverse/ggplot2#3047. In d5bd1a8 I've also added a seed when we generate data for the tests. I think it's safe to close this now. |
Sometimes I get the following warning when running tests
The specific test is
But this doesn't happen every time. We need to bin down this nondeterminism.
The text was updated successfully, but these errors were encountered: