| 36 | BOOST_FIXTURE_TEST_SUITE(net_tests, RegTestingSetup) |
| 37 | |
| 38 | BOOST_AUTO_TEST_CASE(cnode_listen_port) |
| 39 | { |
| 40 | // test default |
| 41 | uint16_t port{GetListenPort()}; |
| 42 | BOOST_CHECK(port == Params().GetDefaultPort()); |
| 43 | // test set port |
| 44 | uint16_t altPort = 12345; |
| 45 | BOOST_CHECK(gArgs.SoftSetArg("-port", ToString(altPort))); |
| 46 | port = GetListenPort(); |
| 47 | BOOST_CHECK(port == altPort); |
| 48 | } |
| 49 | |
| 50 | BOOST_AUTO_TEST_CASE(cnode_simple_test) |
| 51 | { |
nothing calls this directly
no test coverage detected