From fa5b55a21163704afc4e3299a709c31255d0a5a3 Mon Sep 17 00:00:00 2001 From: Dimitry Date: Wed, 31 Aug 2016 18:29:10 +0400 Subject: soltest on windows --- test/RPCSession.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test/RPCSession.cpp') diff --git a/test/RPCSession.cpp b/test/RPCSession.cpp index de10b381..0a01ddb2 100644 --- a/test/RPCSession.cpp +++ b/test/RPCSession.cpp @@ -46,7 +46,7 @@ IPCSocket::IPCSocket(string const& _path): m_path(_path) NULL); // no template file if (m_socket == INVALID_HANDLE_VALUE) - BOOST_FAIL("Error creating IPC socket object"); + BOOST_FAIL("Error creating IPC socket object!"); #else if (_path.length() >= sizeof(sockaddr_un::sun_path)) @@ -251,7 +251,7 @@ void RPCSession::test_mineBlocks(int _number) unsigned sleepTime = m_sleepTime; size_t polls = 0; - for (; polls < 10 && !mined; ++polls) + for (; polls < 14 && !mined; ++polls) { std::this_thread::sleep_for(chrono::milliseconds(sleepTime)); if (fromBigEndian(fromHex(rpcCall("eth_blockNumber").asString())) >= startBlock + _number) @@ -270,7 +270,8 @@ void RPCSession::test_mineBlocks(int _number) if (m_successfulMineRuns > 5) { m_successfulMineRuns = 0; - m_sleepTime--; + if (m_sleepTime > 2) + m_sleepTime--; } } -- cgit