exponentialBackoff was changed from power function to exponential function
This commit is contained in:
@@ -22,6 +22,6 @@ func TestBackoff(t *testing.T) {
|
||||
t.Fatalf("Expected greater than %v, got %v", delta, d)
|
||||
}
|
||||
|
||||
delta = time.Millisecond * time.Duration(math.Pow(10, float64(i+1)))
|
||||
delta = time.Millisecond * 100 * time.Duration(math.Pow(math.E, float64(i)))
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user