aboutsummaryrefslogtreecommitdiff
path: root/src/sp/protocol/reqrep0/xreq_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp/protocol/reqrep0/xreq_test.c')
-rw-r--r--src/sp/protocol/reqrep0/xreq_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp/protocol/reqrep0/xreq_test.c b/src/sp/protocol/reqrep0/xreq_test.c
index 28c79a26..7969ff0f 100644
--- a/src/sp/protocol/reqrep0/xreq_test.c
+++ b/src/sp/protocol/reqrep0/xreq_test.c
@@ -171,7 +171,7 @@ test_xreq_recv_aio_stopped(void)
NUTS_PASS(nng_aio_alloc(&aio, NULL, NULL));
nng_aio_stop(aio);
- nng_recv_aio(req, aio);
+ nng_socket_recv(req, aio);
nng_aio_wait(aio);
NUTS_FAIL(nng_aio_result(aio), NNG_ESTOPPED);
NUTS_CLOSE(req);
@@ -190,7 +190,7 @@ test_xreq_send_aio_canceled(void)
NUTS_PASS(nng_aio_alloc(&aio, NULL, NULL));
nng_aio_set_msg(aio, msg);
- nng_send_aio(req, aio);
+ nng_socket_send(req, aio);
nng_aio_cancel(aio);
nng_aio_wait(aio);
NUTS_FAIL(nng_aio_result(aio), NNG_ECANCELED);