Reduce promises version to 1.1.0 and safeguard visibility test (#3252)

This commit is contained in:
Barret Schloerke
2021-01-12 13:29:18 -05:00
committed by GitHub
parent 5b27d9258e
commit 213f0d3a93
3 changed files with 7 additions and 2 deletions

View File

@@ -85,7 +85,7 @@ Imports:
R6 (>= 2.0),
sourcetools,
later (>= 1.0.0),
promises (>= 1.1.1.9001),
promises (>= 1.1.0),
tools,
crayon,
rlang (>= 0.4.9),
@@ -116,7 +116,6 @@ Suggests:
sass
Remotes:
rstudio/htmltools,
rstudio/promises,
rstudio/sass,
rstudio/bslib,
rstudio/shinytest,

View File

@@ -923,6 +923,9 @@ test_that("bindCache visibility", {
test_that("bindCache reactive visibility - async", {
# only test if promises handles visibility
skip_if_not_installed("promises", "1.1.1.9001")
cache <- cachem::cache_mem()
k <- reactiveVal(0)
res <- NULL

View File

@@ -27,6 +27,9 @@ test_that("hybrid_chain preserves visibility", {
test_that("hybrid_chain preserves visibility - async", {
# only test if promises handles visibility
skip_if_not_installed("promises", "1.1.1.9001")
res <- NULL
hybrid_chain(
promise_resolve(1),