diff --git a/Udp/test/TestSupport.hpp b/Udp/test/TestSupport.hpp index d3c9cef20..42f8ede02 100644 --- a/Udp/test/TestSupport.hpp +++ b/Udp/test/TestSupport.hpp @@ -76,7 +76,7 @@ class MockServer : public BaseMockServer { explicit MockServer(port_t port) : BaseMockServer(ecf::Host{}.name(), port) {} void load_definition(const std::string& defs) const { - ClientInvoker client(host(), port()); + ClientInvoker client(ecf::Str::LOCALHOST(), port()); auto error = client.loadDefs(defs); BOOST_REQUIRE_MESSAGE(!error, "unable to load definitions"); std::cout << " MOCK: reference ecFlow suite has been loaded" << std::endl; @@ -100,7 +100,7 @@ class MockServer : public BaseMockServer { private: node_ptr get_node_at(const std::string& path) const { std::cout << " Creating ecflow_client connected to " << host() << ":" << port() << std::endl; - ClientInvoker client(host(), port()); + ClientInvoker client(ecf::Str::LOCALHOST(), port()); // load all definitions std::shared_ptr defs = nullptr; @@ -138,8 +138,7 @@ class MockServer : public BaseMockServer { invoke_command += std::to_string(port); invoke_command += " -d &"; - std::cout << "Launching ecflow_server @" << host << ":" << port << ", with: " << invoke_command - << std::endl; + std::cout << "Launching ecflow_server @" << host << ":" << port << ", with: " << invoke_command << std::endl; bp::child child(invoke_command);