Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions R/expect-self-test.R
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ expect_snapshot_reporter <- function(
paths = test_path("reporters/tests.R")
) {
local_options(rlang_trace_format_srcrefs = FALSE)
local_rng_version("3.3")
withr::local_rng_version("3.3")
set.seed(1014)
# withr::local_seed(1014)

Expand All @@ -133,12 +133,6 @@ expect_snapshot_reporter <- function(
)
}

# to work around https://github.com/r-lib/withr/issues/167
local_rng_version <- function(version, .local_envir = parent.frame()) {
withr::defer(RNGversion(as.character(getRversion())), envir = .local_envir)
suppressWarnings(RNGversion(version))
}

# Use specifically for testthat tests in order to override the
# defaults found when starting the reporter
local_output_override <- function(
Expand Down
Loading