Skip to content

Commit e643282

Browse files
authored
aws/retry: Fix adaptive rate limit test (#1601)
Updates adaptive rate limit tests to assert expected float values to 12 decimal places to prevent false failures breaking unit tests.
1 parent 0aa6c43 commit e643282

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aws/retry/adaptive_ratelimit_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ func TestSecondsFloat64(t *testing.T) {
257257
}
258258
}
259259

260-
const epsilon float64 = 0.000000000000001
260+
const epsilon float64 = 0.000000000001
261261

262262
// floatEqual compares two float values to determine if they are "equal"
263263
// within the range of epsilon.

0 commit comments

Comments
 (0)