MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / TestLoop_WatchdogDefaultTimeout

Function TestLoop_WatchdogDefaultTimeout

internal/loop/loop_test.go:440–446  ·  view source on GitHub ↗

TestLoop_WatchdogDefaultTimeout tests that the default watchdog timeout is set.

(t *testing.T)

Source from the content-addressed store, hash-verified

438
439// TestLoop_WatchdogDefaultTimeout tests that the default watchdog timeout is set.
440func 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.
449func TestLoop_SetWatchdogTimeout(t *testing.T) {

Callers

nothing calls this directly

Calls 2

WatchdogTimeoutMethod · 0.95
NewLoopFunction · 0.85

Tested by

no test coverage detected