Skip to content

Commit 7e1e277

Browse files
committed
Fix test snapshot platform differences
1 parent d2e3a16 commit 7e1e277

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

tests/async/_snaps/http-file.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
synchronise(http_get(url))
55
Condition
66
Error:
7-
! Could not read a file:// file: Couldn't open file <tempdir>/<tempfile>
7+
! Couldn't read a file:// file: Couldn't open file <tempdir>/<tempfile>
88

tests/async/test-http-file.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@ test_that("file:// does not exist", {
3737
expect_snapshot(
3838
error = TRUE,
3939
synchronise(http_get(url)),
40-
transform = fix_temp_path
40+
transform = function(x) fix_temp_path(sub("Could not", "Couldn't", x))
4141
)
4242
})

0 commit comments

Comments
 (0)