Skip to content

Commit d8903f6

Browse files
committed
make 'BackupQueueIndex dry run doesnt modify file system' less fragile (didn't work on mac before)
1 parent 8d9330b commit d8903f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testthat/test_BackupQueue.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ test_that("BackupQueueIndex$push() can push to different directory", {
478478

479479

480480

481-
test_that("BackupQueueIndex dry run doesnt modify file system", {
481+
test_that("BackupQueueIndex dry run does not modify file system", {
482482
try({unlink(td, recursive = TRUE)})
483483
dir.create(td, recursive = TRUE)
484484
on.exit(unlink(td, recursive = TRUE))
@@ -505,7 +505,7 @@ test_that("BackupQueueIndex dry run doesnt modify file system", {
505505
expect_silent(bt$pad_index())
506506
expect_snapshot_unchanged(snap)
507507

508-
expect_message(bt$push(), "test.log -> test.1.log")
508+
expect_message(bt$push(), ".*test.log -> .*test.1.log")
509509
expect_snapshot_unchanged(snap)
510510

511511
expect_message(bt$prune(0), "test.01.log")

0 commit comments

Comments
 (0)