TestDefaultRetryConfig tests the default retry configuration.
(t *testing.T)
| 395 | |
| 396 | // TestDefaultRetryConfig tests the default retry configuration. |
| 397 | func 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. |
| 412 | func TestLoop_SetRetryConfig(t *testing.T) { |
nothing calls this directly
no test coverage detected