mirror of
https://gitee.com/zhangsken/aliyunpan.git
synced 2026-10-16 10:29:42 +08:00
14 lines
270 B
Go
14 lines
270 B
Go
package command
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
func TestProgressiveBackoffAlg(t *testing.T) {
|
|
for attempt := 1; attempt <= 150; attempt++ {
|
|
delayTime := ProgressiveBackoffAlg(attempt)
|
|
fmt.Printf("第%d次,延迟分钟: %.2f\n", attempt, delayTime.Minutes())
|
|
}
|
|
}
|