Skip to content

Commit b66c306

Browse files
committed
add promise context test
1 parent b68e035 commit b66c306

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/tests.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ nanotest(!until_(cv, 10))
241241
nanotestz(cv_reset(cv))
242242
nanotestz(cv_value(cv))
243243
nanotestaio(cs <- request_signal(req$context, "test", send_mode = "next", cv = cv, timeout = 500))
244+
nanotestaio(set_promise_context(cs, environment()))
244245
nanotest(typeof(ctxn <- .context(rep)) == "externalptr")
245246
nanotestaio(cr <- recv_aio_signal(ctxn, cv = cv, timeout = 500))
246247
nanotest(call_aio(cr)$data == "test")

0 commit comments

Comments
 (0)