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

Function TestDefaultRetryConfig

internal/loop/loop_test.go:397–409  ·  view source on GitHub ↗

TestDefaultRetryConfig tests the default retry configuration.

(t *testing.T)

Source from the content-addressed store, hash-verified

395
396// TestDefaultRetryConfig tests the default retry configuration.
397func TestDefaultRetryConfig(t *testing.T) {
398 config := DefaultRetryConfig()
399
400 if config.MaxRetries != 3 {
401 t.Errorf("Expected MaxRetries 3, got %d", config.MaxRetries)
402 }
403 if !config.Enabled {
404 t.Error("Expected Enabled to be true")
405 }
406 if len(config.RetryDelays) != 3 {
407 t.Errorf("Expected 3 retry delays, got %d", len(config.RetryDelays))
408 }
409}
410
411// TestLoop_SetRetryConfig tests setting retry config.
412func TestLoop_SetRetryConfig(t *testing.T) {

Callers

nothing calls this directly

Calls 1

DefaultRetryConfigFunction · 0.85

Tested by

no test coverage detected