1
0
Fork 0
forked from lthn/blockchain

unit_tests: compilation fixup

This commit is contained in:
sowle 2019-08-17 07:54:55 +03:00
parent 1caa86c499
commit ec8dd9ee25
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC
2 changed files with 4 additions and 7 deletions

View file

@ -29,9 +29,8 @@ TEST(db_accessor_tests, cached_key_value_accessor_test)
tools::db::cached_key_value_accessor<uint64_t, uint64_t, false, true> m_container(m_db);
const std::string folder_name = "./TEST_cached_key_value_accessor_test";
tools::create_directories_if_necessary(folder_name);
uint64_t cache_size = CACHE_SIZE;
ASSERT_TRUE(m_db.open(folder_name, cache_size));
ASSERT_TRUE(m_db.open(folder_name));
ASSERT_TRUE(m_container.init("container"));
... TODO ...
@ -47,8 +46,7 @@ TEST(db_accessor_tests_2, recoursive_tx_test)
const std::string folder_name = "./TEST_db_recursive_tx";
tools::create_directories_if_necessary(folder_name);
uint64_t cache_size = CACHE_SIZE;
ASSERT_TRUE(m_db.open(folder_name, cache_size));
ASSERT_TRUE(m_db.open(folder_name));
ASSERT_TRUE(m_container.init("zzzz") );
bool tx_result = m_container.begin_transaction();
@ -319,8 +317,7 @@ TEST(db_accessor_tests, median_db_cache_test)
const std::string folder_name = "./TEST_median_db_cache";
const std::string naive_median_serialization_filename = folder_name + "/naive_median";
tools::create_directories_if_necessary(folder_name);
uint64_t cache_size = CACHE_SIZE;
ASSERT_TRUE(m_db.open(folder_name, cache_size));
ASSERT_TRUE(m_db.open(folder_name));
ASSERT_TRUE(m_tx_fee_median.init("median_fee"));
m_db.begin_transaction();

View file

@ -30,7 +30,7 @@ namespace lmdb_test
// write data
//
r = bdba.open(db_file_path, CACHE_SIZE);
r = bdba.open(db_file_path);
ASSERT_TRUE(r);
db::container_handle h;