TestLoop_SetMaxIterations tests setting max iterations at runtime.
(t *testing.T)
| 380 | |
| 381 | // TestLoop_SetMaxIterations tests setting max iterations at runtime. |
| 382 | func TestLoop_SetMaxIterations(t *testing.T) { |
| 383 | l := NewLoop("/test/prd.json", "test", 5, testProvider) |
| 384 | |
| 385 | if l.MaxIterations() != 5 { |
| 386 | t.Errorf("Expected initial maxIter 5, got %d", l.MaxIterations()) |
| 387 | } |
| 388 | |
| 389 | l.SetMaxIterations(10) |
| 390 | |
| 391 | if l.MaxIterations() != 10 { |
| 392 | t.Errorf("Expected maxIter 10 after set, got %d", l.MaxIterations()) |
| 393 | } |
| 394 | } |
| 395 | |
| 396 | // TestDefaultRetryConfig tests the default retry configuration. |
| 397 | func TestDefaultRetryConfig(t *testing.T) { |
nothing calls this directly
no test coverage detected