diff options
author | subtly <subtly@users.noreply.github.com> | 2015-01-07 00:01:17 +0800 |
---|---|---|
committer | subtly <subtly@users.noreply.github.com> | 2015-01-07 00:01:17 +0800 |
commit | ecf3c0bb324b328b562408a5605aa33c6bfca9f4 (patch) | |
tree | 9a0e9f81d92eb3ee7ba572b9905a6d7afdd17636 /net.cpp | |
parent | 2cf2af356bbb22d15ceee5df1a9d27af0a4036cc (diff) | |
download | dexon-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.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |