Skip to content

Commit 0051276

Browse files
Import future:::equal_strategy_stacks() conditionally
1 parent 56a3744 commit 0051276

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: future.tests
22
Title: Test Suite for 'Future API' Backends
3-
Version: 0.8.0-9002
3+
Version: 0.8.0-9003
44
Authors@R: c(
55
person("Henrik", "Bengtsson", role = c("aut", "cre", "cph"), email = "[email protected]"),
66
person(family = "The R Consortium", comment = "Project was awared an Infrastructure Steering Committee (ISC) grant in 2017", role = "fnd"))

R/state.R

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ db_state <- local({
1212
plan = NULL
1313
)
1414
stack <- list(state_empty)
15-
15+
16+
equal_strategy_stacks <- import_future("equal_strategy_stacks", default = function(...) {
17+
TRUE
18+
})
19+
1620
function(action = c("reset", "list", "push", "pop"), title = NULL, envir = parent.frame()) {
1721
action <- match.arg(action)
1822

@@ -207,7 +211,7 @@ db_state <- local({
207211

208212
## Assert that everything was properly undone
209213
## FIXME: 'future' should guarantee this - just drop? /HB 2025-04-02
210-
stop_if_not(future:::equal_strategy_stacks(plan("list"), state_plan))
214+
stop_if_not(equal_strategy_stacks(plan("list"), state_plan))
211215
}
212216

213217
# message("*** ", state$title, " ... DONE")

0 commit comments

Comments
 (0)