diff --git a/src/v/archival/tests/ntp_archiver_test.cc b/src/v/archival/tests/ntp_archiver_test.cc index 26d82501873ee..5556e4620456b 100644 --- a/src/v/archival/tests/ntp_archiver_test.cc +++ b/src/v/archival/tests/ntp_archiver_test.cc @@ -1718,6 +1718,8 @@ static void test_manifest_spillover_impl( *part, amv); + auto stop_archiver = ss::defer([&archiver] { archiver.stop().get(); }); + // Do not start archiver and run spillover manually. vlog( test_log.debug,