Rate-limit Watchdog timeout prints to 1Hz (#1459)

This commit is contained in:
Tyler Veness
2018-12-07 19:39:02 -08:00
committed by Peter Johnson
parent 97ba195b88
commit 6d4326a560
5 changed files with 51 additions and 19 deletions

View File

@@ -103,7 +103,6 @@ TEST(WatchdogTest, Epochs) {
std::this_thread::sleep_for(std::chrono::milliseconds(100));
watchdog.AddEpoch("Epoch 3");
watchdog.Disable();
watchdog.PrintEpochs();
EXPECT_EQ(0u, watchdogCounter) << "Watchdog triggered early";
@@ -115,7 +114,6 @@ TEST(WatchdogTest, Epochs) {
std::this_thread::sleep_for(std::chrono::milliseconds(200));
watchdog.AddEpoch("Epoch 2");
watchdog.Disable();
watchdog.PrintEpochs();
EXPECT_EQ(0u, watchdogCounter) << "Watchdog triggered early";
}