2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 22:15:23 +00:00

[trac624] Fix for build on OSX

In the test for UDPSocket, use io_service::run_one() instead of
poll().
This commit is contained in:
Stephen Morris
2011-02-24 16:43:30 +00:00
parent 6fb5dd6bf0
commit add0f697ae

View File

@@ -257,9 +257,9 @@ TEST(UDPSocket, SequenceTest) {
server.async_send_to(buffer(INBOUND_DATA, sizeof(INBOUND_DATA)),
server_remote_endpoint.getASIOEndpoint(), server_cb);
// Expect two callbacks to run
service.get_io_service().poll();
//service.run_one();
// Expect the two callbacks to run
service.run_one();
service.run_one();
EXPECT_TRUE(client_cb.getCalled());
EXPECT_EQ(0, client_cb.getCode());