diff --git a/tests/mutation_test.cc b/tests/mutation_test.cc index 8e6af80cd0..1cd6f7a188 100644 --- a/tests/mutation_test.cc +++ b/tests/mutation_test.cc @@ -48,7 +48,7 @@ with_column_family(schema_ptr s, column_family::config cfg, Func func) { auto cf = make_lw_shared(s, cfg, column_family::no_commitlog(), *cm); return func(*cf).then([cf, cm] { return cf->stop(); - }).finally([cf] {}); + }).finally([cf, cm] {}); } SEASTAR_TEST_CASE(test_mutation_is_applied) {