Skip to content

Only set seeds in testing when needed. #590

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

Merged
merged 5 commits into from
Mar 1, 2024
Merged

Only set seeds in testing when needed. #590

merged 5 commits into from
Mar 1, 2024

Conversation

sbfnk
Copy link
Contributor

@sbfnk sbfnk commented Mar 1, 2024

Description

This PR closes #558.

Specifically, it implements the suggestion in #558 (comment)

Seeds are now only set before doing a snapshot test involving number generation and unset again afterwards.

Initial submission checklist

  • My PR is based on a package issue and I have explicitly linked it.
  • I have tested my changes locally (using devtools::test() and devtools::check()).
  • I have added or updated unit tests where necessary.
  • I have updated the documentation if required and rebuilt docs if yes (using devtools::document()).
  • I have followed the established coding standards (and checked using lintr::lint_package()).
  • I have added a news item linked to this PR.

After the initial Pull Request

  • I have reviewed Checks for this PR and addressed any issues as far as I am able.

@seabbs seabbs enabled auto-merge (squash) March 1, 2024 10:30
seabbs
seabbs previously approved these changes Mar 1, 2024
Copy link
Contributor

@seabbs seabbs left a comment

Choose a reason for hiding this comment

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

LGTM

seabbs
seabbs previously approved these changes Mar 1, 2024
@sbfnk sbfnk disabled auto-merge March 1, 2024 14:01
@sbfnk sbfnk merged commit 97e07cf into main Mar 1, 2024
@sbfnk sbfnk deleted the many-seeds branch March 1, 2024 14:01
sbfnk added a commit that referenced this pull request May 3, 2024
* remove unneeded seeds

* update snapshots

* add news item

* add missing dependency

* add reviewer
sbfnk added a commit that referenced this pull request May 3, 2024
* remove unneeded seeds

* update snapshots

* add news item

* add missing dependency

* add reviewer
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.

Setting seeds in tests
2 participants