Merge pull request #5872 from ethereum/semantic-tests-split

Semantic test infrastructure
This commit is contained in:
chriseth
2019-02-18 18:13:55 +01:00
committed by GitHub
23 changed files with 594 additions and 45 deletions
+10 -3
View File
@@ -139,9 +139,16 @@ string IPCSocket::sendRequest(string const& _req)
RPCSession& RPCSession::instance(string const& _path)
{
static RPCSession session(_path);
BOOST_REQUIRE_EQUAL(session.m_ipcSocket.path(), _path);
return session;
try
{
static RPCSession session(_path);
BOOST_REQUIRE_EQUAL(session.m_ipcSocket.path(), _path);
return session;
}
catch (std::exception const&)
{
BOOST_THROW_EXCEPTION(std::runtime_error("Error creating RPC session for socket: " + _path));
}
}
string RPCSession::eth_getCode(string const& _address, string const& _blockNumber)