Skip to content

Commit

Permalink
Sent test case p2p logging to /dev/null/.
Browse files Browse the repository at this point in the history
  • Loading branch information
evoskuil committed Jan 5, 2018
1 parent eb6b3b1 commit 54df66a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/commands/send-tx-node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ BOOST_AUTO_TEST_SUITE(send_tx_node__invoke)
BOOST_AUTO_TEST_CASE(send_tx_node__invoke__mainnet__success)
{
BX_DECLARE_PEER_COMMAND(send_tx_node);

// Send p2p log output to /dev/null.
log::initialize();

command.set_host_option(BX_MAINNET_HOST);
command.set_port_option(BX_MAINNET_PORT);
command.set_transaction_argument({ SEND_TX_NODE_A });
Expand Down
4 changes: 4 additions & 0 deletions test/commands/send-tx-p2p.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ BOOST_AUTO_TEST_SUITE(send_tx_p2p__invoke)
////BOOST_AUTO_TEST_CASE(send_tx_p2p__invoke__nodes_3__okay)
////{
//// BX_DECLARE_PEER_COMMAND(send_tx_p2p);
////
//// // Send p2p log output to /dev/null.
//// log::initialize();
////
//// command.set_nodes_option(3);
//// command.set_transaction_argument({ SEND_TX_P2P_A });
//// BX_REQUIRE_OKAY(command.invoke(output, error));
Expand Down

0 comments on commit 54df66a

Please sign in to comment.