Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
abhaybd committed Jan 27, 2024
1 parent 97f3713 commit e6d4877
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/util/SchedulerTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ TEST_CASE("Test Watchdog", "[util][scheduler]") {

SECTION("Test keep calling while starved") {
auto l = std::make_shared<latch>(1);
Watchdog<fake_clock> wd(100ms, [&]() { l->count_down(); }, true);
auto fn = [&]() { l->count_down(); };
Watchdog<fake_clock> wd(100ms, fn, true);
for (int i = 0; i < 5; i++) {
REQUIRE_FALSE(l->wait_for(50ms));
advanceFakeClock(50ms, 5ms, wd);
Expand Down

0 comments on commit e6d4877

Please sign in to comment.