aboutsummaryrefslogtreecommitdiff
path: root/src/sp/protocol/bus0/bus_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp/protocol/bus0/bus_test.c')
-rw-r--r--src/sp/protocol/bus0/bus_test.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/sp/protocol/bus0/bus_test.c b/src/sp/protocol/bus0/bus_test.c
index 7a9e4a8b..3fb2aa56 100644
--- a/src/sp/protocol/bus0/bus_test.c
+++ b/src/sp/protocol/bus0/bus_test.c
@@ -371,14 +371,13 @@ test_bus_cooked(void)
bool b;
NUTS_PASS(nng_bus0_open(&s));
- NUTS_PASS(nng_socket_get_bool(s, NNG_OPT_RAW, &b));
+ NUTS_PASS(nng_socket_raw(s, &b));
NUTS_TRUE(!b);
- NUTS_FAIL(nng_socket_set_bool(s, NNG_OPT_RAW, true), NNG_EREADONLY);
NUTS_PASS(nng_close(s));
// raw pub only differs in the option setting
NUTS_PASS(nng_bus0_open_raw(&s));
- NUTS_PASS(nng_socket_get_bool(s, NNG_OPT_RAW, &b));
+ NUTS_PASS(nng_socket_raw(s, &b));
NUTS_TRUE(b);
NUTS_CLOSE(s);
}