Use ws2 as default in unit tests

This commit is contained in:
Miguel Portilla
2016-10-24 12:32:31 -04:00
committed by Brad Chase
parent d53d5cfc42
commit bf642404c7
3 changed files with 56 additions and 25 deletions

View File

@@ -47,10 +47,7 @@ public:
/** Returns a client operating through WebSockets/S. */
std::unique_ptr<WSClient>
makeWSClient(Config const& cfg);
std::unique_ptr<WSClient>
makeWS2Client(Config const& cfg);
makeWSClient(Config const& cfg, bool v2 = true);
} // test
} // ripple

View File

@@ -254,15 +254,9 @@ private:
};
std::unique_ptr<WSClient>
makeWSClient(Config const& cfg)
makeWSClient(Config const& cfg, bool v2)
{
return std::make_unique<WSClientImpl>(cfg, false);
}
std::unique_ptr<WSClient>
makeWS2Client(Config const& cfg)
{
return std::make_unique<WSClientImpl>(cfg, true);
return std::make_unique<WSClientImpl>(cfg, v2);
}
} // test