From 277664355d1edc5217154168f81c63eefb78a841 Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Sat, 9 Mar 2024 19:38:11 +0100 Subject: Early exit on fatal failure in unique store test. --- vespalib/src/tests/datastore/unique_store/unique_store_test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vespalib') diff --git a/vespalib/src/tests/datastore/unique_store/unique_store_test.cpp b/vespalib/src/tests/datastore/unique_store/unique_store_test.cpp index 7e96ab7b7a2..2c359db59b1 100644 --- a/vespalib/src/tests/datastore/unique_store/unique_store_test.cpp +++ b/vespalib/src/tests/datastore/unique_store/unique_store_test.cpp @@ -352,14 +352,14 @@ TYPED_TEST(TestBase, store_can_be_compacted) { EntryRef val0Ref = this->add(this->values()[0]); EntryRef val1Ref = this->add(this->values()[1]); - this->remove(this->add(this->values()[2])); + ASSERT_NO_FATAL_FAILURE(this->remove(this->add(this->values()[2]))); this->reclaim_memory(); size_t reserved = this->get_reserved(val0Ref); this->assertBufferState(val0Ref, TestBufferStats().used(reserved + 3).dead(reserved + 1)); uint32_t val1BufferId = this->getBufferId(val0Ref); EXPECT_EQ(2u, this->refStore.size()); - this->compactWorst(); + ASSERT_NO_FATAL_FAILURE(this->compactWorst()); EXPECT_EQ(2u, this->refStore.size()); this->assertStoreContent(); @@ -401,7 +401,7 @@ TYPED_TEST(TestBase, store_can_be_enumerated) { EntryRef val0Ref = this->add(this->values()[0]); EntryRef val1Ref = this->add(this->values()[1]); - this->remove(this->add(this->values()[2])); + ASSERT_NO_FATAL_FAILURE(this->remove(this->add(this->values()[2]))); this->reclaim_memory(); auto enumerator = this->getEnumerator(true); -- cgit v1.2.3