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

Function TestLoop_WatchdogWithWorkDir

internal/loop/loop_test.go:662–668  ·  view source on GitHub ↗

TestLoop_WatchdogWithWorkDir tests that watchdog works with NewLoopWithWorkDir too.

(t *testing.T)

Source from the content-addressed store, hash-verified

660
661// TestLoop_WatchdogWithWorkDir tests that watchdog works with NewLoopWithWorkDir too.
662func TestLoop_WatchdogWithWorkDir(t *testing.T) {
663 l := NewLoopWithWorkDir("/test/prd.json", "/work", "test", 5, testProvider)
664
665 if l.WatchdogTimeout() != DefaultWatchdogTimeout {
666 t.Errorf("Expected default watchdog timeout for NewLoopWithWorkDir, got %v", l.WatchdogTimeout())
667 }
668}

Callers

nothing calls this directly

Calls 2

NewLoopWithWorkDirFunction · 0.85
WatchdogTimeoutMethod · 0.80

Tested by

no test coverage detected