From 49d538a5a9c9003123dc3002427c356dbe13cc7b Mon Sep 17 00:00:00 2001 From: Alex Williams Date: Wed, 6 Jan 2016 16:14:04 +0000 Subject: [PATCH] Add test for invalid protocol --- test/test_nanomsg.l | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test_nanomsg.l b/test/test_nanomsg.l index 2b7ea5e..804ee57 100644 --- a/test/test_nanomsg.l +++ b/test/test_nanomsg.l @@ -140,6 +140,10 @@ '(unit~assert-throws 'InternalError '(NanomsgError . "Protocol not supported") '(rep-bind "tcpz://127.0.0.1:5560") + "Throw an InternalError when trying to use an invalid transport" ) + '(unit~assert-throws 'InternalError + '(NanomsgError . "Invalid protocol") + '(protocol-connect "REQ" "tcp://127.0.0.1:5560") "Throw an InternalError when trying to use an invalid protocol" ) '(test-rep-bind)