aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/sock.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/sock.c b/tests/sock.c
index 929e73c8..e0743936 100644
--- a/tests/sock.c
+++ b/tests/sock.c
@@ -21,9 +21,11 @@ TestMain("Socket Operations", {
So(rv == 0);
So(sock != NULL);
- Convey("And we can close it", {
- rv = nng_close(sock);
+ Convey("And we can shut it down", {
+ rv = nng_shutdown(sock);
So(rv == 0);
+ rv = nng_shutdown(sock);
+ So(rv == NNG_ECLOSED);
})
Reset({