package pipeline import ( "testing" "time" ) func TestRetryDelayBounds(t *testing.T) { for attempt := 1; attempt <= 20; attempt++ { bounded := attempt if bounded > 6 { bounded = 6 } base := time.Second * time.Duration(1< base+base/2 { t.Fatalf("attempt %d: delay %s outside [%s,%s]", attempt, got, base, base+base/2) } } } }