Skip to content

Commit

Permalink
actually move later to suggests
Browse files Browse the repository at this point in the history
  • Loading branch information
shikokuchuo committed Jun 19, 2024
1 parent 0709fc9 commit fb3ccf9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@ SystemRequirements: 'libnng' >= 1.6 and 'libmbedtls' >= 2.5, or 'cmake' and 'xz'
to compile NNG and/or Mbed TLS included in package sources
Depends:
R (>= 3.5)
LinkingTo:
later
Suggests:
knitr,
later,
markdown
VignetteBuilder: knitr
RoxygenNote: 7.3.1
5 changes: 3 additions & 2 deletions tests/tests.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ nanotestp <- function(x) invisible(is.character(capture.output(print(x))) || sto
nanotestxp <- function(x) invisible(typeof(x) == "externalptr" || stop("is not of type 'externalptr' as expected"))
nanotesterr <- function(x, e = "")
invisible(grepl(e, tryCatch(x, error = identity)[["message"]], fixed = TRUE) || stop("expected error message '", e, "' not generated"))
later <- requireNamespace("later", quietly = TRUE)

nng_version()
nanotestnano(n <- nano("req", listen = "inproc://nanonext", autostart = FALSE))
Expand Down Expand Up @@ -250,7 +251,7 @@ nanotestn(unlist(next_config()))
nanotesterr(next_config(NULL, class = 1L), "must be a character string")

nanotestaio(cs <- request(req$context, "test", send_mode = "next", cv = cv, timeout = 500))
# nanotestaio(set_promise_context(cs, environment()))
if (later) nanotestaio(set_promise_context(cs, environment()))
nanotestnn(cs$data)
nanotest(typeof(ctxn <- .context(rep)) == "externalptr")
nanotestaio(cr <- recv_aio(ctxn, cv = cv, timeout = 500))
Expand Down Expand Up @@ -531,7 +532,7 @@ nanotesterr(collect_aio_(list("a")), "object is not an Aio or list of Aios")
nanotesterr(collect_aio(list(fakesock)), "object is not an Aio or list of Aios")
nanotestn(stop_aio("a"))
nanotestn(stop_aio(list("a")))
# nanotest(is.environment(set_promise_context(new.env(), new.env())))
if (later) nanotest(is.environment(set_promise_context(new.env(), new.env())))

pem <- "-----BEGIN CERTIFICATE----- -----END CERTIFICATE-----"
test_tls <- function(pem) {
Expand Down

0 comments on commit fb3ccf9

Please sign in to comment.