Skip to content

Commit afdf2de

Browse files
committed
test: add CJDNS to LimitedAndReachable_Network unit tests
1 parent 2b7a818 commit afdf2de

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/test/net_tests.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,26 +655,31 @@ BOOST_AUTO_TEST_CASE(LimitedAndReachable_Network)
655655
BOOST_CHECK(IsReachable(NET_IPV6));
656656
BOOST_CHECK(IsReachable(NET_ONION));
657657
BOOST_CHECK(IsReachable(NET_I2P));
658+
BOOST_CHECK(IsReachable(NET_CJDNS));
658659

659660
SetReachable(NET_IPV4, false);
660661
SetReachable(NET_IPV6, false);
661662
SetReachable(NET_ONION, false);
662663
SetReachable(NET_I2P, false);
664+
SetReachable(NET_CJDNS, false);
663665

664666
BOOST_CHECK(!IsReachable(NET_IPV4));
665667
BOOST_CHECK(!IsReachable(NET_IPV6));
666668
BOOST_CHECK(!IsReachable(NET_ONION));
667669
BOOST_CHECK(!IsReachable(NET_I2P));
670+
BOOST_CHECK(!IsReachable(NET_CJDNS));
668671

669672
SetReachable(NET_IPV4, true);
670673
SetReachable(NET_IPV6, true);
671674
SetReachable(NET_ONION, true);
672675
SetReachable(NET_I2P, true);
676+
SetReachable(NET_CJDNS, true);
673677

674678
BOOST_CHECK(IsReachable(NET_IPV4));
675679
BOOST_CHECK(IsReachable(NET_IPV6));
676680
BOOST_CHECK(IsReachable(NET_ONION));
677681
BOOST_CHECK(IsReachable(NET_I2P));
682+
BOOST_CHECK(IsReachable(NET_CJDNS));
678683
}
679684

680685
BOOST_AUTO_TEST_CASE(LimitedAndReachable_NetworkCaseUnroutableAndInternal)

0 commit comments

Comments
 (0)