Skip to content

Commit 0ad4549

Browse files
committed
Adjust snapshot tests
On Windows we got `<tempdir>//<tempfile>` for some reason.
1 parent cb40f8e commit 0ad4549

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/testthat/helper.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ fix_temp_path <- function(x) {
8484
x <- sub("\\R\\", "/R/", x, fixed = TRUE)
8585
x <- sub("[\\\\/]file[a-zA-Z0-9]+", "/<tempfile>", x)
8686
x <- sub("[A-Z]:.*Rtmp[a-zA-Z0-9]+[\\\\/]", "<tempdir>/", x)
87+
x <- sub("//", "/", x, fixed = TRUE)
8788
x
8889
}
8990

0 commit comments

Comments
 (0)