@@ -69,6 +69,7 @@ nanotest(identical(call_aio(n), n))
6969nanotest(is_aio(n ) == FALSE )
7070sraio <- n $ send_aio(as.raw(0L ), mode = " r" , timeout = 200 )
7171rraio <- n $ recv_aio(mode = " r" , timeout = 200 )
72+ nanotestn(call_aio(rraio )$ data )
7273sraio <- n $ send_aio(as.raw(1L ), mode = " ra" , timeout = 200 )
7374rraio <- n $ recv_aio(mode = " ra" , timeout = 200 )
7475sraio <- n $ send_aio(as.raw(2L ), mode = " raw" , timeout = 200 )
@@ -151,9 +152,11 @@ nanotest(close(sock2) == 0L)
151152nanotestwn(ncurl(" http://www.cam.ac.uk/" ))
152153nanotestwn(ncurl(" http://httpbin.org/post" , convert = FALSE , method = " POST" , headers = c(`Content-Type` = " text/plain" ), data = " test" ))
153154nanotestwn(ncurl(" http://httpbin.org/post" , convert = FALSE , method = " POST" , headers = list (`Content-Type` = " text/plain" )))
154- nanotestwn(ncurl(" http://httpbin.org/put" , async = TRUE , method = " PUT" , headers = c(Authorization = " Bearer token" ), data = " test" ))
155- put <- ncurl(" http://httpbin.org/put" , async = TRUE , method = " PUT" , headers = list (Authorization = " Bearer token" ))
156- nanotest(is.null(stop_aio(put )))
155+ put1 <- ncurl(" http://httpbin.org/put" , async = TRUE , method = " PUT" , headers = c(Authorization = " Bearer token" ), data = " test" )
156+ nanotestn(put1 $ raw )
157+ put2 <- ncurl(" http://httpbin.org/put" , async = TRUE , method = " PUT" , headers = list (Authorization = " Bearer token" ))
158+ nanotestn(call_aio(put2 )$ data )
159+ nanotest(is.null(stop_aio(put2 )))
157160nanotestwn(stream(dial = " tcp://127.0.0.1:5555" ))
158161
159162nanotest(is.character(ver <- nng_version()) && length(ver ) == 2L )
0 commit comments