Skip to content

Commit

Permalink
Work around (I think) platform dependent lengths
Browse files Browse the repository at this point in the history
  • Loading branch information
richfitz committed Jan 2, 2024
1 parent c9e5a48 commit 49fd3c0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-task.R
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ test_that("can be verbose running a task", {
task_create_explicit(quote(sqrt(a)), export = "a", envir = env1))
res <- evaluate_promise(
task_eval(id, envir = env2, verbose = TRUE, root = path))
expect_match(res$messages, "hipercow running at '.+'", all = FALSE)
expect_match(res$messages, "hipercow running at", all = FALSE)
expect_match(res$messages, "id: ", all = FALSE)
expect_match(res$messages, "starting at: ", all = FALSE)
expect_match(res$messages, "task type: explicit", all = FALSE)
Expand All @@ -307,7 +307,7 @@ test_that("can be verbose running a failing task", {
task_create_explicit(quote(readRDS("nofile.rds"))))
res <- evaluate_promise(
task_eval(id, envir = env2, verbose = TRUE, root = path))
expect_match(res$messages, "hipercow running at '.+'", all = FALSE)
expect_match(res$messages, "hipercow running at", all = FALSE)
expect_match(res$messages, "id: ", all = FALSE)
expect_match(res$messages, "starting at: ", all = FALSE)
expect_match(res$messages, "task type: explicit", all = FALSE)
Expand Down

0 comments on commit 49fd3c0

Please sign in to comment.