aboutsummaryrefslogtreecommitdiff
path: root/src/sp/protocol/reqrep0/xrep_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp/protocol/reqrep0/xrep_test.c')
-rw-r--r--src/sp/protocol/reqrep0/xrep_test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sp/protocol/reqrep0/xrep_test.c b/src/sp/protocol/reqrep0/xrep_test.c
index a00f78f7..d4e4ce26 100644
--- a/src/sp/protocol/reqrep0/xrep_test.c
+++ b/src/sp/protocol/reqrep0/xrep_test.c
@@ -171,7 +171,7 @@ test_xrep_close_pipe_before_send(void)
NUTS_MARRY(req, rep);
NUTS_SEND(req, "test");
- nng_recv_aio(rep, aio1);
+ nng_socket_recv(rep, aio1);
nng_aio_wait(aio1);
NUTS_PASS(nng_aio_result(aio1));
NUTS_TRUE((m = nng_aio_get_msg(aio1)) != NULL);
@@ -265,7 +265,7 @@ test_xrep_recv_aio_stopped(void)
NUTS_PASS(nng_aio_alloc(&aio, NULL, NULL));
nng_aio_stop(aio);
- nng_recv_aio(rep, aio);
+ nng_socket_recv(rep, aio);
nng_aio_wait(aio);
NUTS_FAIL(nng_aio_result(aio), NNG_ESTOPPED);
NUTS_CLOSE(rep);
@@ -281,7 +281,7 @@ test_xrep_recv_aio_canceled(void)
NUTS_PASS(nng_rep0_open_raw(&rep));
NUTS_PASS(nng_aio_alloc(&aio, NULL, NULL));
- nng_recv_aio(rep, aio);
+ nng_socket_recv(rep, aio);
nng_aio_cancel(aio);
nng_aio_wait(aio);
NUTS_FAIL(nng_aio_result(aio), NNG_ECANCELED);