Skip to content

Commit

Permalink
Reduce promises version to 1.1.0 and safeguard visibility test (rstud…
Browse files Browse the repository at this point in the history
  • Loading branch information
schloerke authored Jan 12, 2021
1 parent 5b27d92 commit 213f0d3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
3 changes: 1 addition & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -116,7 +116,6 @@ Suggests:
sass
Remotes:
rstudio/htmltools,
rstudio/promises,
rstudio/sass,
rstudio/bslib,
rstudio/shinytest,
Expand Down
3 changes: 3 additions & 0 deletions tests/testthat/test-bind-cache.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions tests/testthat/test-hybrid-chain.R
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 213f0d3

Please sign in to comment.