Skip to content

Commit

Permalink
Connect ecflow client to "localhost"
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosbento authored and figi44 committed Oct 12, 2023
1 parent cda5556 commit 4e4e0cc
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Udp/test/TestSupport.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class MockServer : public BaseMockServer<MockServer> {
explicit MockServer(port_t port) : BaseMockServer<MockServer>(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;
Expand All @@ -100,7 +100,7 @@ class MockServer : public BaseMockServer<MockServer> {
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> defs = nullptr;
Expand Down Expand Up @@ -138,8 +138,7 @@ class MockServer : public BaseMockServer<MockServer> {
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);

Expand Down

0 comments on commit 4e4e0cc

Please sign in to comment.