Skip to content

Commit 7113cf6

Browse files
committed
Update tests for changed hybrid_chain call stack
1 parent 13a175d commit 7113cf6

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

tests/testthat/test-stacks.R

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ test_that("integration tests", {
129129
df <- causeError(full = FALSE)
130130
# dumpTests(df)
131131

132-
expect_equal(df$num, c(56L, 55L, 54L, 38L, 37L, 36L, 35L, 34L, 33L))
132+
expect_equal(df$num, c(53L, 52L, 51L, 35L, 34L, 33L, 32L, 31L, 30L))
133133
expect_equal(df$call, c("A", "B", "<reactive:C>", "C", "renderTable",
134134
"func", "force", "withVisible", "withCallingHandlers"))
135135
expect_equal(nzchar(df$loc), c(TRUE, TRUE, TRUE, FALSE, TRUE,
@@ -138,12 +138,11 @@ test_that("integration tests", {
138138
df <- causeError(full = TRUE)
139139
# dumpTests(df)
140140

141-
expect_equal(df$num, c(59L, 58L, 57L, 56L, 55L, 54L, 53L,
142-
52L, 51L, 50L, 49L, 48L, 47L, 46L, 45L, 44L, 43L, 42L, 41L,
143-
40L, 39L, 38L, 37L, 36L, 35L, 34L, 33L, 32L, 31L, 30L, 29L,
144-
28L, 27L, 26L, 25L, 24L, 23L, 22L, 21L, 20L, 19L, 18L, 17L,
145-
16L, 15L, 14L, 13L, 12L, 11L, 10L, 9L, 8L, 7L, 6L, 5L, 4L,
146-
3L, 2L, 1L))
141+
expect_equal(df$num, c(56L, 55L, 54L, 53L, 52L, 51L, 50L, 49L,
142+
48L, 47L, 46L, 45L, 44L, 43L, 42L, 41L, 40L, 39L, 38L, 37L,
143+
36L, 35L, 34L, 33L, 32L, 31L, 30L, 29L, 28L, 27L, 26L, 25L,
144+
24L, 23L, 22L, 21L, 20L, 19L, 18L, 17L, 16L, 15L, 14L, 13L,
145+
12L, 11L, 10L, 9L, 8L, 7L, 6L, 5L, 4L, 3L, 2L, 1L))
147146
expect_equal(df$call, c("h", ".handleSimpleError", "stop",
148147
"A", "B", "<reactive:C>", "..stacktraceon..", ".func", "withVisible",
149148
"withCallingHandlers", "contextFunc", "env$runWith", "force",
@@ -152,8 +151,8 @@ test_that("integration tests", {
152151
"ctx$run", "self$.updateValue", "..stacktraceoff..", "C",
153152
"renderTable", "func", "force", "withVisible", "withCallingHandlers",
154153
"domain$wrapSync", "promises::with_promise_domain",
155-
"captureStackTraces", "doTryCatch", "tryCatchOne", "tryCatchList",
156-
"tryCatch", "do", "hybrid_chain", "renderFunc", "renderTable({ C() }, server = FALSE)",
154+
"captureStackTraces", "withCallingHandlers", "do", "hybrid_chain",
155+
"renderFunc", "renderTable({ C() }, server = FALSE)",
157156
"..stacktraceon..", "contextFunc", "env$runWith", "force",
158157
"domain$wrapSync", "promises::with_promise_domain",
159158
"withReactiveDomain", "domain$wrapSync", "promises::with_promise_domain",
@@ -165,10 +164,9 @@ test_that("integration tests", {
165164
TRUE, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE,
166165
FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE,
167166
TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE,
167+
FALSE, FALSE, FALSE, FALSE, TRUE, FALSE, FALSE, FALSE, FALSE,
168168
FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE, FALSE,
169-
FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE,
170-
FALSE, TRUE, FALSE, FALSE, FALSE, TRUE, FALSE, FALSE, FALSE,
171-
FALSE))
169+
FALSE, FALSE, TRUE, FALSE, FALSE, FALSE, FALSE))
172170
})
173171

174172
test_that("shiny.error", {

0 commit comments

Comments
 (0)