Skip to content

Commit

Permalink
aws/retry: Fix adaptive rate limit test (#1601)
Browse files Browse the repository at this point in the history
Updates adaptive rate limit tests to assert expected float values to 12 decimal places to prevent false failures breaking unit tests.
  • Loading branch information
jasdel committed Feb 24, 2022
1 parent 0aa6c43 commit e643282
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aws/retry/adaptive_ratelimit_test.go
Expand Up @@ -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.
Expand Down

0 comments on commit e643282

Please sign in to comment.