Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adapt timeout #376

Merged
merged 2 commits into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ Imports:
teal.logger (>= 0.1.3.9013),
teal.reporter (>= 0.2.0),
teal.widgets (>= 0.4.0),
tern (>= 0.7.10)
tern (>= 0.7.10),
utils
Suggests:
BiocStyle,
covr,
Expand Down
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,4 @@ import(teal.data)
importFrom(S4Vectors,DataFrame)
importFrom(S4Vectors,setListElement)
importFrom(lifecycle,deprecate_soft)
importFrom(utils,str)
2 changes: 1 addition & 1 deletion R/barplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ srv_g_barplot <- function(id,

if (.test) {
table_r <- reactive({
str(layer_data(plot_r()))
utils::str(layer_data(plot_r()))
})
output$table <- renderPrint(table_r())
}
Expand Down
2 changes: 1 addition & 1 deletion R/boxplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ srv_g_boxplot <- function(id,

if (.test) {
table_r <- reactive({
str(layer_data(plot_r()))
utils::str(layer_data(plot_r()))
})
output$table <- renderPrint(table_r())
}
Expand Down
1 change: 1 addition & 0 deletions R/package.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
#' @import teal teal.data
#' @importFrom S4Vectors setListElement DataFrame
#' @importFrom lifecycle deprecate_soft
#' @importFrom utils str
NULL
4 changes: 2 additions & 2 deletions tests/testthat/test-pca.R
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ test_that("pca module works as expected in the test app", {
)

# Now update experiment name, assay name, cluster & matrix option on correlation tab.
app$set_inputs(!!ns("experiment-name") := "hd2")
app$set_inputs(!!ns("experiment-name") := "hd2", timeout_ = 30000)
app$set_inputs(!!ns("assay-name") := "voom")
app$set_inputs(!!ns("cluster_columns") := TRUE)
app$set_inputs(!!ns("show_matrix") := FALSE)
Expand All @@ -117,7 +117,7 @@ test_that("pca module works as expected in the test app", {
app$set_inputs(!!ns("var_pct") := FALSE)
app$set_inputs(!!ns("label") := FALSE)

app$wait_for_idle()
app$wait_for_idle(timeout = 30000)
res <- app$get_value(output = ns("test_pca"))
expect_snapshot(
cat(res)
Expand Down
Loading