From ecf3c0bb324b328b562408a5605aa33c6bfca9f4 Mon Sep 17 00:00:00 2001 From: subtly Date: Tue, 6 Jan 2015 17:01:17 +0100 Subject: stl sleep_for, for windows --- net.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net.cpp') diff --git a/net.cpp b/net.cpp index 94699513..67c50dae 100644 --- a/net.cpp +++ b/net.cpp @@ -206,7 +206,7 @@ BOOST_AUTO_TEST_CASE(test_udp_once) UDPDatagram d(bi::udp::endpoint(boost::asio::ip::address::from_string("127.0.0.1"), 30300), bytes({65,65,65,65})); TestUDPSocket a; a.m_socket->connect(); a.start(); a.m_socket->send(d); - sleep(1); + this_thread::sleep_for(chrono::seconds(1)); BOOST_REQUIRE_EQUAL(true, a.success); } -- cgit