diff --git a/tests/unit/test_process.cpp b/tests/unit/test_process.cpp index 2f99fde03..4e85b9fd6 100644 --- a/tests/unit/test_process.cpp +++ b/tests/unit/test_process.cpp @@ -338,7 +338,8 @@ protected: fs::last_write_time(path, new_time); } - void runUpdateWithPlaceboSession(const std::function &assertions) { + template + void runUpdateWithPlaceboSession(Func assertions) const { boost::process::v1::environment env = boost::this_process::environment(); std::vector apps_initial; proc::ctx_t ctx;