Skip to content

Commit f09158d

Browse files
committed
update tests
1 parent a861506 commit f09158d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/tests.R

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,11 @@ nanotesterr(req$opt("false", list()), "type")
199199

200200
nanotestaio(r <- recv_aio(rep, timeout = 500))
201201
nanotestz(req$send("", block = 500))
202-
p <- tryCatch(collect_pipe(rep), error = function(e) NULL)
203-
if (!is.null(p)) nanotestnano(p)
202+
p <- tryCatch(collect_pipe(r), error = function(e) NULL)
204203
nanotestp(p)
205-
nanotestz(send(rep, "", block = 500))
204+
if (!is.null(p)) nanotestnano(p)
205+
nanotestaio(r <- send_aio(rep, "", timeout = 500))
206+
nanotesterr(collect_pipe(r), "valid")
206207
nanotestnn(req$recv())
207208

208209
nanotestnano(ctx <- context(rep))
@@ -523,6 +524,7 @@ nanotesterr(send(fakestream, "test"), "valid")
523524
nanotesterr(send_aio(fakestream, "test"), "valid")
524525
nanotesterr(recv(fakestream), "valid")
525526
nanotesterr(recv_aio(fakestream), "valid")
527+
nanotesterr(collect_pipe(fakestream), "valid")
526528
nanotesterr(opt(fakestream, name = "test") <- "test", "valid")
527529
nanotesterr(opt(fakestream, name = "test"), "valid")
528530
nanotesterr(close(fakestream), "active Stream")

0 commit comments

Comments
 (0)