summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/sock.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/sock.c b/tests/sock.c
index 65ed5565..c4fcbee0 100644
--- a/tests/sock.c
+++ b/tests/sock.c
@@ -100,5 +100,15 @@ TestMain("Socket Operations", {
So(check == 1234);
})
})
+
+ Convey("Dialing bogus address not supported", {
+ rv = nng_dial(sock, "bogus://somewhere", NULL, 0);
+ So(rv == NNG_ENOTSUP);
+ })
+
+ Convey("Dialing synch can get refused", {
+ rv = nng_dial(sock, "inproc://notthere", NULL, NNG_FLAG_SYNCH);
+ So(rv == NNG_ECONNREFUSED);
+ })
})
}) \ No newline at end of file