Skip to content

Commit

Permalink
Make tests pass after 2020
Browse files Browse the repository at this point in the history
also test that 64 bit integers are properly handled
  • Loading branch information
bmwiedemann committed Apr 23, 2018
1 parent a49381d commit 3ee4be1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/rpc_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,14 +247,14 @@ BOOST_AUTO_TEST_CASE(rpc_ban)
ar = r.get_array();
BOOST_CHECK_EQUAL(ar.size(), 0U);

BOOST_CHECK_NO_THROW(r = CallRPC(std::string("setban 127.0.0.0/24 add 1607731200 true")));
BOOST_CHECK_NO_THROW(r = CallRPC(std::string("setban 127.0.0.0/24 add 9907731200 true")));
BOOST_CHECK_NO_THROW(r = CallRPC(std::string("listbanned")));
ar = r.get_array();
o1 = ar[0].get_obj();
adr = find_value(o1, "address");
UniValue banned_until = find_value(o1, "banned_until");
BOOST_CHECK_EQUAL(adr.get_str(), "127.0.0.0/24");
BOOST_CHECK_EQUAL(banned_until.get_int64(), 1607731200); // absolute time check
BOOST_CHECK_EQUAL(banned_until.get_int64(), 9907731200); // absolute time check

BOOST_CHECK_NO_THROW(CallRPC(std::string("clearbanned")));

Expand Down

0 comments on commit 3ee4be1

Please sign in to comment.