Skip to content

Commit

Permalink
one more test for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamore committed Dec 29, 2023
1 parent 84699b3 commit c40aee7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sp/transport/socket/sockfd_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ test_sfd_recv_max(void)
nng_listener l0;
nng_listener l1;
size_t sz;
size_t scratch;
int fds[2];

NUTS_PASS(nng_socket_pair(fds));
Expand All @@ -144,6 +145,8 @@ test_sfd_recv_max(void)
NUTS_PASS(nng_socket_get_size(s0, NNG_OPT_RECVMAXSZ, &sz));
NUTS_TRUE(sz == 200);
NUTS_PASS(nng_listener_set_size(l0, NNG_OPT_RECVMAXSZ, 100));
NUTS_PASS(nng_listener_get_size(l0, NNG_OPT_RECVMAXSZ, &scratch));
NUTS_ASSERT(scratch == 100);
NUTS_PASS(nng_listener_start(l0, 0));
NUTS_PASS(nng_listener_set_int(l0, NNG_OPT_SOCKET_FD, fds[0]));

Expand Down

0 comments on commit c40aee7

Please sign in to comment.