diff --git a/src/v/archival/tests/ntp_archiver_test.cc b/src/v/archival/tests/ntp_archiver_test.cc index 7eb0649e1e921..f4a282824f397 100644 --- a/src/v/archival/tests/ntp_archiver_test.cc +++ b/src/v/archival/tests/ntp_archiver_test.cc @@ -1732,6 +1732,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,