@@ -114,6 +114,7 @@ test_identical(call_aio(msg), msg)
114114test_class(" recvAio" , msg <- n1 $ recv_aio(mode = " complex" , timeout = 500 ))
115115test_null(stop_aio(msg ))
116116test_null(stop_aio(n ))
117+ test_false(stop_request(n ))
117118test_identical(call_aio(msg ), msg )
118119test_class(" errorValue" , msg $ data )
119120test_identical(call_aio(n ), n )
@@ -300,6 +301,7 @@ test_notnull(cs$data)
300301test_true(recv(ctxn , block = 500 ))
301302test_zero(send(ctxn , TRUE , mode = 1L , block = 500 ))
302303test_class(" recvAio" , cs <- request(.context(req $ socket ), data = TRUE , timeout = 5 , id = TRUE ))
304+ test_false(stop_request(cs ))
303305test_zero(reap(ctxn ))
304306test_equal(reap(ctxn ), 7L )
305307test_zero(pipe_notify(rep , cv , add = TRUE , flag = TRUE ))
@@ -450,6 +452,7 @@ test_type("integer", call_aio_(put1)$status)
450452if (put1 $ status == 200L ) test_notnull(put1 $ headers )
451453if (put1 $ status == 200L ) test_notnull(put1 $ data )
452454test_null(stop_aio(put1 ))
455+ test_false(stop_request(put1 ))
453456test_class(" ncurlAio" , haio <- ncurl_aio(" https://i.i" ))
454457test_class(" errorValue" , call_aio(haio )$ data )
455458test_print(haio $ data )
@@ -588,8 +591,9 @@ test_error(collect_aio_("a"), "object is not an Aio or list of Aios")
588591test_error(collect_aio_(list (" a" )), " object is not an Aio or list of Aios" )
589592test_error(collect_aio(list (fakesock )), " object is not an Aio or list of Aios" )
590593test_null(stop_aio(" a" ))
594+ test_false(stop_request(" a" ))
591595test_null(stop_aio(list (" a" )))
592- test_null(stop_aio (list (" a" )))
596+ test_false(stop_request (list (" a" )))
593597test_null(.keep(NULL , new.env()))
594598test_null(.keep(new.env(), new.env()))
595599
0 commit comments