From 0f48847d026e2c889ae06eb9c2fa5ebe7833e820 Mon Sep 17 00:00:00 2001 From: Pavel Emelyanov Date: Mon, 2 Sep 2024 14:18:28 +0300 Subject: [PATCH] test: Use shorter with_sstable_directory overload() In sstable directory test there are two of those -- one that works on path, state, env and callback, and the other one that just needs env and callback, getting path from env and assuming state is normal. Two test cases in this test can enjoy the shorter one. Signed-off-by: Pavel Emelyanov Closes scylladb/scylladb#20395 --- test/boost/sstable_directory_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/boost/sstable_directory_test.cc b/test/boost/sstable_directory_test.cc index 3754f66e4e..1e83eff74c 100644 --- a/test/boost/sstable_directory_test.cc +++ b/test/boost/sstable_directory_test.cc @@ -360,7 +360,7 @@ SEASTAR_THREAD_TEST_CASE(sstable_directory_unshared_sstables_sanity_matched_gene }).get(); } - with_sstable_directory(dir.path(), sstables::sstable_state::normal, env, [] (sharded& sstdir) { + with_sstable_directory(env, [] (sharded& sstdir) { distributed_loader_for_tests::process_sstable_dir(sstdir, { .throw_on_missing_toc = true }).get(); verify_that_all_sstables_are_local(sstdir, smp::count).get(); }); @@ -392,7 +392,7 @@ SEASTAR_THREAD_TEST_CASE(sstable_directory_unshared_sstables_sanity_unmatched_ge }).get(); } - with_sstable_directory(dir.path(), sstables::sstable_state::normal, env, [] (sharded& sstdir) { + with_sstable_directory(env, [] (sharded& sstdir) { distributed_loader_for_tests::process_sstable_dir(sstdir, { .throw_on_missing_toc = true }).get(); verify_that_all_sstables_are_local(sstdir, smp::count).get(); });