diff options
| -rw-r--r-- | tests/sock.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/sock.c b/tests/sock.c index cc7e56b0..acc4c437 100644 --- a/tests/sock.c +++ b/tests/sock.c @@ -21,6 +21,10 @@ TestMain("Socket Operations", { So(rv == 0); So(sock != NULL); + Reset({ + nng_close(sock); + }) + Convey("And we can shut it down", { rv = nng_shutdown(sock); So(rv == 0); @@ -28,10 +32,6 @@ TestMain("Socket Operations", { So(rv == NNG_ECLOSED); }) - Reset({ - nng_close(sock); - }) - Convey("It's type is still proto", { So(nng_protocol(sock) == NNG_PROTO_PAIR); }) |
