std::chrono::milliseconds

v1.28
Brad House 6 months ago
parent 77394f70f6
commit b805099681
  1. 3
      test/ares-test.h

3
test/ares-test.h vendored

@ -53,6 +53,7 @@
#include <thread> #include <thread>
#include <utility> #include <utility>
#include <vector> #include <vector>
#include <chrono>
namespace ares { namespace ares {
@ -770,7 +771,7 @@ int RunInContainer(ContainerFilesystem *fs, const std::string &hostname,
VoidToIntFn fn = \ VoidToIntFn fn = \
[this](void) -> int { \ [this](void) -> int { \
ares_reinit(this->channel_); \ ares_reinit(this->channel_); \
std::this_thread::sleep_for(chrono::miliseconds(100)); \ std::this_thread::sleep_for(std::chrono::milliseconds(100)); \
return this->InnerTestBody(); \ return this->InnerTestBody(); \
}; \ }; \
EXPECT_EQ(0, RunInContainer(&chroot, hostname, domainname, fn)); \ EXPECT_EQ(0, RunInContainer(&chroot, hostname, domainname, fn)); \

Loading…
Cancel
Save