From 74972ee4ae0858dc1b7c773886596ed5e9cc2356 Mon Sep 17 00:00:00 2001 From: Harihara Kadayam Date: Wed, 20 Sep 2023 18:55:02 -0700 Subject: [PATCH] Merge with latest master --- src/tests/test_append_blkalloc.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/tests/test_append_blkalloc.cpp b/src/tests/test_append_blkalloc.cpp index 1fb1c8b14..43c7a50aa 100644 --- a/src/tests/test_append_blkalloc.cpp +++ b/src/tests/test_append_blkalloc.cpp @@ -72,6 +72,16 @@ class AppendBlkAllocatorTest : public testing::Test { {HS_SERVICE::DATA, {.size_pct = 80.0, .blkalloc_type = homestore::blk_allocator_type_t::append}}}); } + virtual void TearDown() override { test_common::HSTestHelper::shutdown_homestore(); } + + void restart_homestore() { + test_common::HSTestHelper::start_homestore( + "test_append_blkalloc", + {{HS_SERVICE::META, {.size_pct = 5.0}}, + {HS_SERVICE::DATA, {.size_pct = 80.0, .blkalloc_type = homestore::blk_allocator_type_t::append}}}, + nullptr /* before_svc_start_cb */, true /* restart */); + } + void reset_io_job_done() { m_io_job_done = false; } void finish_and_notify() {