Skip to content

Commit 22d01a9

Browse files
committed
Align expect_file_unchanged_
1 parent 6c40b18 commit 22d01a9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

R/expect-known.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ expect_file_unchanged_ <- function(
8282
lines,
8383
...,
8484
update = TRUE,
85-
info = NULL
85+
info = NULL,
86+
trace_env = caller_env()
8687
) {
8788
if (!file.exists(path)) {
8889
cli::cli_warn("Creating reference output.")
@@ -115,7 +116,7 @@ expect_file_unchanged_ <- function(
115116
encodeString(path, quote = "'"),
116117
paste0(comp, collapse = "\n\n")
117118
)
118-
fail(msg, info = info, trace_env = caller_env())
119+
fail(msg, info = info, trace_env = trace_env)
119120
} else {
120121
pass()
121122
}

0 commit comments

Comments
 (0)