diff --git a/test/tateyama/test_utils/endpoint.h b/test/tateyama/test_utils/endpoint.h index 77f7756..5275b30 100644 --- a/test/tateyama/test_utils/endpoint.h +++ b/test/tateyama/test_utils/endpoint.h @@ -146,7 +146,8 @@ class endpoint { }; endpoint(const std::string& name, const std::string& digest, boost::barrier& sync) - : name_(name), digest_(digest), container_(std::make_unique(name_, 1)), thread_(std::thread(std::ref(*this))), sync_(sync) { + : name_(name), digest_(digest), container_(std::make_unique(name_, 1)), sync_(sync) { + thread_ = std::thread(std::ref(*this)); } ~endpoint() { if (thread_.joinable()) {