test/utils: Get compaction manager from test_env

This is just to reduce churn in the next patch.

Signed-off-by: Pavel Emelyanov <xemul@scylladb.com>
This commit is contained in:
Pavel Emelyanov
2023-11-09 15:26:12 +03:00
parent 9fd270566a
commit b68f9c32bb

View File

@@ -162,7 +162,7 @@ protected:
future<> compaction_manager_test::run(test_env& env, sstables::run_id output_run_id, table_state& table_s, noncopyable_function<future<> (sstables::compaction_data&)> job) {
auto& tcm = env.test_compaction_manager();
auto task = make_shared<compaction_manager_test_task>(_cm, table_s, output_run_id, std::move(job));
auto task = make_shared<compaction_manager_test_task>(tcm.get_compaction_manager(), table_s, output_run_id, std::move(job));
co_await tcm.perform_compaction(std::move(task));
}