Browse Source

nonetwork check added

cl-refactor
Vlad Gluhovsky 10 years ago
parent
commit
7f04b43595
  1. 15
      test/libwhisper/shhrpc.cpp

15
test/libwhisper/shhrpc.cpp

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

Loading…
Cancel
Save