diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2019-11-01 19:28:15 +0200 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2019-11-01 19:28:15 +0200 |
commit | 59853c33f1c8781480549effc39baee60ffd837c (patch) | |
tree | 216d6f9f6cca26bbca60e1efc3dcd70d58aa1645 /src | |
parent | bc3fcf3c0d1d4c83da0fab14d40f92ffca35789e (diff) |
test: Do not instantiate CAddrDB for static call
Diffstat (limited to 'src')
-rw-r--r-- | src/test/net_tests.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/test/net_tests.cpp b/src/test/net_tests.cpp index fed65afdbf..f5f217b841 100644 --- a/src/test/net_tests.cpp +++ b/src/test/net_tests.cpp @@ -128,9 +128,8 @@ BOOST_AUTO_TEST_CASE(caddrdb_read) CDataStream ssPeers2 = AddrmanToStream(addrmanUncorrupted); CAddrMan addrman2; - CAddrDB adb; BOOST_CHECK(addrman2.size() == 0); - BOOST_CHECK(adb.Read(addrman2, ssPeers2)); + BOOST_CHECK(CAddrDB::Read(addrman2, ssPeers2)); BOOST_CHECK(addrman2.size() == 3); } @@ -160,9 +159,8 @@ BOOST_AUTO_TEST_CASE(caddrdb_read_corrupted) CDataStream ssPeers2 = AddrmanToStream(addrmanCorrupted); CAddrMan addrman2; - CAddrDB adb; BOOST_CHECK(addrman2.size() == 0); - BOOST_CHECK(!adb.Read(addrman2, ssPeers2)); + BOOST_CHECK(!CAddrDB::Read(addrman2, ssPeers2)); BOOST_CHECK(addrman2.size() == 0); } |