From 104f5800991861476eb0f873f5727eef0792f1d4 Mon Sep 17 00:00:00 2001 From: M-Kusumgar Date: Fri, 16 Aug 2024 13:00:38 +0100 Subject: [PATCH] replace job_id with taskId --- tests/testthat/test-api.R | 8 ++++---- tests/testthat/test-zzz-e2e.R | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/testthat/test-api.R b/tests/testthat/test-api.R index 94864dd..1955759 100644 --- a/tests/testthat/test-api.R +++ b/tests/testthat/test-api.R @@ -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" ) @@ -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" ) }) diff --git a/tests/testthat/test-zzz-e2e.R b/tests/testthat/test-zzz-e2e.R index cba5f01..a690205 100644 --- a/tests/testthat/test-zzz-e2e.R +++ b/tests/testthat/test-zzz-e2e.R @@ -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", { @@ -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) })