PROTON-1675 [cpp] Attempt to listen on invalid URL will not throw exception (#238)
diff --git a/cpp/src/container_test.cpp b/cpp/src/container_test.cpp
index f48a676..1866e6b 100644
--- a/cpp/src/container_test.cpp
+++ b/cpp/src/container_test.cpp
@@ -188,17 +188,17 @@
proton::container c;
// Default fixed-option listener. Valgrind for leaks.
- try { c.listen("999.666.999.666:0"); } catch (const proton::error&) {}
+ c.listen("999.666.999.666:0");
c.run();
// Dummy listener.
test_listen_handler l;
test_handler h2("999.999.999.666", proton::connection_options());
- try { c.listen("999.666.999.666:0", l); } catch (const proton::error&) {}
+ c.listen("999.666.999.666:0", l);
c.run();
ASSERT(!l.on_open_);
ASSERT(!l.on_accept_);
ASSERT(l.on_close_);
- ASSERT(!l.on_error_.empty());
+ ASSERT(!l.on_error_.empty()); // proton:io: Name or service not known
return 0;
}