Skip to content

Commit

Permalink
node: fix mdbx test in sanitizer build after PR 1621 (#1774)
Browse files Browse the repository at this point in the history
  • Loading branch information
canepat authored Jan 23, 2024
1 parent 9f2436f commit dcb937b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions silkworm/node/db/mdbx_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -618,14 +618,14 @@ TEST_CASE("OF pages") {
}

// Skip the following section in debug as too big data size in multi-value map will assert
#ifndef MDBX_DEBUG
#ifdef NDEBUG
SECTION("Multi-value map: No overflow, error for value too big") {
db::PooledCursor target(txn, db::table::kPlainState);
Bytes key(20, '\0');
Bytes value(db::max_multivalue_size_for_leaf_page(txn) + /*any extra value*/ 1, '\0');
CHECK_THROWS_AS(target.insert(db::to_slice(key), db::to_slice(value)), ::mdbx::exception);
}
#endif // MDBX_DEBUG
#endif // NDEBUG
}

static uint64_t get_free_pages(const ::mdbx::env& env) {
Expand Down

0 comments on commit dcb937b

Please sign in to comment.