Skip to content

Commit c97e780

Browse files
committed
Make test less strict
1 parent 03ea39c commit c97e780

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/testthat/test-validator.R

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -388,10 +388,8 @@ test_that("absolute file references throw error", {
388388
normalizePath(child_path1), normalizePath(child_path2)),
389389
parent_path)
390390

391-
msg <- sprintf(
392-
"'$ref' paths must be relative, got absolute path(s) '%s', '%s'",
393-
child_path1, child_path2)
394-
expect_error(json_validator(parent_path, engine = "ajv"), msg, fixed = TRUE)
391+
expect_error(json_validator(parent_path, engine = "ajv"),
392+
"'\\$ref' paths must be relative, got absolute path\\(s\\)")
395393
})
396394

397395

0 commit comments

Comments
 (0)