MCPcopy Create free account
hub / github.com/astercloud/aster / TestRetryConfiguration

Function TestRetryConfiguration

pkg/executionplan/types_test.go:491–505  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

489}
490
491func TestRetryConfiguration(t *testing.T) {
492 plan := NewExecutionPlan("Test plan")
493 step := plan.AddStep("tool1", "Step 1", nil)
494
495 // Set retry configuration
496 step.MaxRetries = 3
497 step.RetryDelayMs = 1000
498
499 if plan.Steps[0].MaxRetries != 3 {
500 t.Errorf("expected MaxRetries 3, got %d", plan.Steps[0].MaxRetries)
501 }
502 if plan.Steps[0].RetryDelayMs != 1000 {
503 t.Errorf("expected RetryDelayMs 1000, got %d", plan.Steps[0].RetryDelayMs)
504 }
505}
506
507func TestExecutionOptions(t *testing.T) {
508 plan := NewExecutionPlan("Test plan")

Callers

nothing calls this directly

Calls 2

AddStepMethod · 0.95
NewExecutionPlanFunction · 0.85

Tested by

no test coverage detected