From e6432821e1e212895376c492e01cffaa7f39262e Mon Sep 17 00:00:00 2001 From: Jason Del Ponte <961963+jasdel@users.noreply.github.com> Date: Thu, 24 Feb 2022 15:37:59 -0800 Subject: [PATCH] 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. --- aws/retry/adaptive_ratelimit_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws/retry/adaptive_ratelimit_test.go b/aws/retry/adaptive_ratelimit_test.go index 4741ce1fa89..8712bc0f010 100644 --- a/aws/retry/adaptive_ratelimit_test.go +++ b/aws/retry/adaptive_ratelimit_test.go @@ -257,7 +257,7 @@ func TestSecondsFloat64(t *testing.T) { } } -const epsilon float64 = 0.000000000000001 +const epsilon float64 = 0.000000000001 // floatEqual compares two float values to determine if they are "equal" // within the range of epsilon.