mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Rate-limit Watchdog timeout prints to 1Hz (#1459)
This commit is contained in:
committed by
Peter Johnson
parent
97ba195b88
commit
6d4326a560
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user