From 2557c5e7dd5068692732dbbc670c3353d519f7b4 Mon Sep 17 00:00:00 2001 From: vedhav Date: Mon, 24 Jun 2024 19:50:42 +0530 Subject: [PATCH] fix: wait for idle before getting the app namespace --- tests/testthat/test-assaySpec.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/testthat/test-assaySpec.R b/tests/testthat/test-assaySpec.R index 99000475..551e1acf 100644 --- a/tests/testthat/test-assaySpec.R +++ b/tests/testthat/test-assaySpec.R @@ -31,10 +31,11 @@ test_that("assaySpecServer module works as expected in the test app", { load_timeout = 300000 ) + app$wait_for_idle(timeout = 20000) + ns <- module_ns_shiny2(app) # Validation message because no assays eligible in first experiment. - app$wait_for_idle(timeout = 20000) res <- app$get_value(output = ns("result")) expect_identical(res$message, "No assays eligible for this experiment, please make sure to add normalized assays")