Skip to content

Commit

Permalink
Merge #2390: [BUG][Tests] Properly set temporary datadir for dbwrappe…
Browse files Browse the repository at this point in the history
…r_basic_data

23d31db [BUG][Tests] Properly set temporary datadir for dbwrapper_basic_data (random-zebra)

Pull request description:

  Few cases left out in #2336

ACKs for top commit:
  Fuzzbawls:
    ACK 23d31db
  furszy:
    ACK 23d31db and merging

Tree-SHA512: fac4fdd14b028520a473b234faac9e9472869ff1e97948c31af126554bc959ef6b920979e62036bb61189728635801367dc1fe35c8fdac828633fe95bc38d073
  • Loading branch information
furszy committed May 18, 2021
2 parents 6c5fa9c + 23d31db commit d22ac4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/test/dbwrapper_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ BOOST_AUTO_TEST_CASE(dbwrapper)

BOOST_AUTO_TEST_CASE(dbwrapper_basic_data)
{
fs::path ph = GetDataDir() / "dbwrapper_1";
fs::path ph = SetDataDir(std::string("dbwrapper_basic_data"));
CDBWrapper dbw(ph, (1 << 20), false, true);

uint256 res;
Expand Down Expand Up @@ -187,7 +187,7 @@ BOOST_AUTO_TEST_CASE(dbwrapper_iterator)

BOOST_AUTO_TEST_CASE(iterator_ordering)
{
fs::path ph = fs::temp_directory_path() / fs::unique_path();
fs::path ph = SetDataDir(std::string("iterator_ordering"));
CDBWrapper dbw(ph, (1 << 20), true, false);
for (int x=0x00; x<256; ++x) {
uint8_t key = x;
Expand Down Expand Up @@ -265,7 +265,7 @@ BOOST_AUTO_TEST_CASE(iterator_string_ordering)
{
char buf[10];

fs::path ph = fs::temp_directory_path() / fs::unique_path();
fs::path ph = SetDataDir(std::string("iterator_string_ordering"));
CDBWrapper dbw(ph, (1 << 20), true, false);
for (int x=0x00; x<10; ++x) {
for (int y = 0; y < 10; y++) {
Expand Down

0 comments on commit d22ac4c

Please sign in to comment.