@@ -710,7 +710,7 @@ test_that("BackupQueueDatetime works with supported timestamp formats", {
710710 )
711711
712712 expect_identical(
713- as.character (bq $ files $ timestamp ),
713+ format (bq $ files $ timestamp ),
714714 eres
715715 )
716716
@@ -719,7 +719,7 @@ test_that("BackupQueueDatetime works with supported timestamp formats", {
719719 file.create(noback )
720720
721721 expect_identical(
722- as.character (bq $ files $ timestamp ),
722+ format (bq $ files $ timestamp ),
723723 eres
724724 )
725725
@@ -955,7 +955,7 @@ test_that("BackupQueueDateTime: `age` works with no backups", {
955955 file.create(tf )
956956 on.exit(unlink(tf ), add = TRUE )
957957
958- now <- as.Date(as.character (file.info(tf )$ ctime ))
958+ now <- as.Date(format (file.info(tf )$ ctime ))
959959 bq <- BackupQueueDateTime $ new(tf )
960960 expect_false(bq $ should_rotate(age = " 10 day" , now = now , size = 0 ))
961961 expect_true(bq $ should_rotate(age = " 0 day" , now = now , size = 0 ))
@@ -1377,7 +1377,7 @@ test_that("BackupQueueDateTime: `age` works with no backups", {
13771377 file.create(tf )
13781378 on.exit(unlink(tf ), add = TRUE )
13791379
1380- now <- as.Date(as.character (file.info(tf )$ ctime ))
1380+ now <- as.Date(format (file.info(tf )$ ctime ))
13811381 bq <- BackupQueueDate $ new(tf )
13821382 expect_false(bq $ should_rotate(age = " 10 day" , now = now , size = 0 ))
13831383 expect_true(bq $ should_rotate(age = " 0 day" , now = now , size = 0 ))
0 commit comments