Skip to content

Commit

Permalink
replace job_id with taskId
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Kusumgar committed Aug 16, 2024
1 parent fca17c8 commit 104f580
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions tests/testthat/test-api.R
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ test_that("can run orderly reports", {
)

res <- endpoint$run(jsonlite::toJSON(req))
rrq::rrq_task_wait(res$data$job_id, controller = queue$controller)
rrq::rrq_task_wait(res$data$taskId, controller = queue$controller)
expect_equal(
rrq::rrq_task_status(res$data$job_id, controller = queue$controller),
rrq::rrq_task_status(res$data$taskId, controller = queue$controller),
"COMPLETE"
)

Expand All @@ -124,9 +124,9 @@ test_that("can run orderly reports", {
)

res <- endpoint$run(jsonlite::toJSON(req))
rrq::rrq_task_wait(res$data$job_id, controller = queue$controller)
rrq::rrq_task_wait(res$data$taskId, controller = queue$controller)
expect_equal(
rrq::rrq_task_status(res$data$job_id, controller = queue$controller),
rrq::rrq_task_status(res$data$taskId, controller = queue$controller),
"COMPLETE"
)
})
4 changes: 2 additions & 2 deletions tests/testthat/test-zzz-e2e.R
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ test_that("can run report", {

expect_equal(dat$status, "success")
expect_null(dat$errors)
expect_worker_task_complete(dat$data$job_id, queue$controller, 10)
expect_worker_task_complete(dat$data$taskId, queue$controller, 10)
})

test_that("can run report with params", {
Expand All @@ -108,5 +108,5 @@ test_that("can run report with params", {

expect_equal(dat$status, "success")
expect_null(dat$errors)
expect_worker_task_complete(dat$data$job_id, queue$controller, 10)
expect_worker_task_complete(dat$data$taskId, queue$controller, 10)
})

0 comments on commit 104f580

Please sign in to comment.