Skip to content

Commit

Permalink
took out kv references
Browse files Browse the repository at this point in the history
  • Loading branch information
ndcgundlach committed Jul 11, 2022
1 parent 2ad747a commit d3905d5
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions unittests/state_history_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,12 @@ class table_deltas_tester : public tester {
};

BOOST_AUTO_TEST_CASE(test_deltas_not_empty) {
for (backing_store_type backing_store : { backing_store_type::CHAINBASE/* TODO: uncomment this , backing_store_type::ROCKSDB*/ } ) {
table_deltas_tester chain;
chain.set_backing_store(backing_store);
table_deltas_tester chain;

auto deltas = eosio::state_history::create_deltas(chain.control->kv_db(), false);
auto deltas = eosio::state_history::create_deltas(chain.control->db(), false);

for(const auto &delta: deltas) {
BOOST_REQUIRE(!delta.rows.obj.empty());
}
for(const auto &delta: deltas) {
BOOST_REQUIRE(!delta.rows.obj.empty());
}
}

Expand Down

0 comments on commit d3905d5

Please sign in to comment.