diff options
author | Bernhard M. Wiedemann <bwiedemann@suse.de> | 2018-04-23 23:57:21 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2018-07-12 10:27:29 -0400 |
commit | 170b3099814c96c9af39fb2405502b0a85a33b5d (patch) | |
tree | 5ea655ab37e81c6ca3a49456a0f4927f411d4f25 /src | |
parent | cfc6f7413bfa486aed9811fcef177cd80568f2db (diff) | |
download | bitcoin-170b3099814c96c9af39fb2405502b0a85a33b5d.tar.xz |
Make tests pass after 2020
also test that 64 bit integers are properly handled
Github-Pull: #13061
Rebased-From: 3ee4be10500710fc8e9b03acf974fd81224c05c4
Diffstat (limited to 'src')
-rw-r--r-- | src/test/rpc_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/rpc_tests.cpp b/src/test/rpc_tests.cpp index ed86413b2f..1365227fab 100644 --- a/src/test/rpc_tests.cpp +++ b/src/test/rpc_tests.cpp @@ -256,14 +256,14 @@ BOOST_AUTO_TEST_CASE(rpc_ban) ar = r.get_array(); BOOST_CHECK_EQUAL(ar.size(), 0); - 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"))); |