TestLoop_WatchdogDefaultTimeout tests that the default watchdog timeout is set.
(t *testing.T)
| 438 | |
| 439 | // TestLoop_WatchdogDefaultTimeout tests that the default watchdog timeout is set. |
| 440 | func TestLoop_WatchdogDefaultTimeout(t *testing.T) { |
| 441 | l := NewLoop("/test/prd.json", "test", 5, testProvider) |
| 442 | |
| 443 | if l.WatchdogTimeout() != DefaultWatchdogTimeout { |
| 444 | t.Errorf("Expected default watchdog timeout %v, got %v", DefaultWatchdogTimeout, l.WatchdogTimeout()) |
| 445 | } |
| 446 | } |
| 447 | |
| 448 | // TestLoop_SetWatchdogTimeout tests setting the watchdog timeout. |
| 449 | func TestLoop_SetWatchdogTimeout(t *testing.T) { |
nothing calls this directly
no test coverage detected