|
|
@ -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)); \
|
|
|
|