aboutsummaryrefslogtreecommitdiffstats
path: root/net.cpp
diff options
context:
space:
mode:
authorsubtly <subtly@users.noreply.github.com>2015-01-07 00:01:17 +0800
committersubtly <subtly@users.noreply.github.com>2015-01-07 00:01:17 +0800
commitecf3c0bb324b328b562408a5605aa33c6bfca9f4 (patch)
tree9a0e9f81d92eb3ee7ba572b9905a6d7afdd17636 /net.cpp
parent2cf2af356bbb22d15ceee5df1a9d27af0a4036cc (diff)
downloaddexon-solidity-ecf3c0bb324b328b562408a5605aa33c6bfca9f4.tar
dexon-solidity-ecf3c0bb324b328b562408a5605aa33c6bfca9f4.tar.gz
dexon-solidity-ecf3c0bb324b328b562408a5605aa33c6bfca9f4.tar.bz2
dexon-solidity-ecf3c0bb324b328b562408a5605aa33c6bfca9f4.tar.lz
dexon-solidity-ecf3c0bb324b328b562408a5605aa33c6bfca9f4.tar.xz
dexon-solidity-ecf3c0bb324b328b562408a5605aa33c6bfca9f4.tar.zst
dexon-solidity-ecf3c0bb324b328b562408a5605aa33c6bfca9f4.zip
stl sleep_for, for windows
Diffstat (limited to 'net.cpp')
-rw-r--r--net.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}