Unverified Commit aaf1ae79 authored by Dennis Jenkins's avatar Dennis Jenkins Committed by GitHub

Merge pull request #303 from SnoozeTime/302_fix_listener_tests

Issue 302 - Fix listener_test
parents 5fef036e 067a8180
......@@ -116,6 +116,8 @@ TEST(listener_test, listener_bind_port_free) {
Pistache::Address address(Pistache::Ipv4::any(), port);
Pistache::Tcp::Listener listener;
Pistache::Flags<Pistache::Tcp::Options> options;
listener.init(1, options);
listener.setHandler(Pistache::Http::make_handler<DummyHandler>());
listener.bind(address);
ASSERT_TRUE(true);
......@@ -135,6 +137,8 @@ TEST(listener_test, listener_bind_port_not_free_throw_runtime) {
Pistache::Address address(Pistache::Ipv4::any(), port);
Pistache::Tcp::Listener listener;
Pistache::Flags<Pistache::Tcp::Options> options;
listener.init(1, options);
listener.setHandler(Pistache::Http::make_handler<DummyHandler>());
try {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment