From e6d4877dd87c6059307b90d78c04107c85d839cd Mon Sep 17 00:00:00 2001 From: Abhay D Date: Sat, 27 Jan 2024 15:01:15 -0800 Subject: [PATCH] Fix formatting --- tests/util/SchedulerTest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/util/SchedulerTest.cpp b/tests/util/SchedulerTest.cpp index eebe800c..ab851fb7 100644 --- a/tests/util/SchedulerTest.cpp +++ b/tests/util/SchedulerTest.cpp @@ -120,7 +120,8 @@ TEST_CASE("Test Watchdog", "[util][scheduler]") { SECTION("Test keep calling while starved") { auto l = std::make_shared(1); - Watchdog wd(100ms, [&]() { l->count_down(); }, true); + auto fn = [&]() { l->count_down(); }; + Watchdog wd(100ms, fn, true); for (int i = 0; i < 5; i++) { REQUIRE_FALSE(l->wait_for(50ms)); advanceFakeClock(50ms, 5ms, wd);