diff --git a/test/helpers.hpp b/test/helpers.hpp index 9d20947f6..524995380 100644 --- a/test/helpers.hpp +++ b/test/helpers.hpp @@ -493,6 +493,12 @@ connectLOKit(const std::shared_ptr& socketPoll, const Poco::URI& uri return ws; } + if (SigUtil::getShutdownRequestFlag()) + { + TST_LOG("Shutdown requested, giving up connectLOKit"); + break; + } + TST_LOG("ERROR: Reconnecting (retry #" << (max_retries - retries) << ") to " << uri.toString()); }