|
@ -105,6 +105,9 @@ BOOST_FIXTURE_TEST_SUITE(shhrpc, Setup) |
|
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(basic) |
|
|
BOOST_AUTO_TEST_CASE(basic) |
|
|
{ |
|
|
{ |
|
|
|
|
|
if (test::Options::get().nonetwork) |
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
cnote << "Testing web3 basic functionality..."; |
|
|
cnote << "Testing web3 basic functionality..."; |
|
|
|
|
|
|
|
|
web3->startNetwork(); |
|
|
web3->startNetwork(); |
|
@ -152,6 +155,9 @@ BOOST_AUTO_TEST_CASE(basic) |
|
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(send) |
|
|
BOOST_AUTO_TEST_CASE(send) |
|
|
{ |
|
|
{ |
|
|
|
|
|
if (test::Options::get().nonetwork) |
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
cnote << "Testing web3 send..."; |
|
|
cnote << "Testing web3 send..."; |
|
|
|
|
|
|
|
|
bool sent = false; |
|
|
bool sent = false; |
|
@ -220,6 +226,9 @@ BOOST_AUTO_TEST_CASE(send) |
|
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(receive) |
|
|
BOOST_AUTO_TEST_CASE(receive) |
|
|
{ |
|
|
{ |
|
|
|
|
|
if (test::Options::get().nonetwork) |
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
cnote << "Testing web3 receive..."; |
|
|
cnote << "Testing web3 receive..."; |
|
|
|
|
|
|
|
|
bool sent = false; |
|
|
bool sent = false; |
|
@ -287,6 +296,9 @@ BOOST_AUTO_TEST_CASE(receive) |
|
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(serverBasic) |
|
|
BOOST_AUTO_TEST_CASE(serverBasic) |
|
|
{ |
|
|
{ |
|
|
|
|
|
if (test::Options::get().nonetwork) |
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
cnote << "Testing basic jsonrpc server..."; |
|
|
cnote << "Testing basic jsonrpc server..."; |
|
|
|
|
|
|
|
|
string s = jsonrpcServer->web3_clientVersion(); |
|
|
string s = jsonrpcServer->web3_clientVersion(); |
|
@ -322,6 +334,9 @@ BOOST_AUTO_TEST_CASE(serverBasic) |
|
|
|
|
|
|
|
|
BOOST_AUTO_TEST_CASE(server) |
|
|
BOOST_AUTO_TEST_CASE(server) |
|
|
{ |
|
|
{ |
|
|
|
|
|
if (test::Options::get().nonetwork) |
|
|
|
|
|
return; |
|
|
|
|
|
|
|
|
cnote << "Testing server functionality..."; |
|
|
cnote << "Testing server functionality..."; |
|
|
|
|
|
|
|
|
bool b; |
|
|
bool b; |
|
|