Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
Fix flaky test. (#2564)
ahravb53054b605c9
diff --git a/pkg/common/http_test.go b/pkg/common/http_test.goindex 7427fb4c4..5b35eb8df 100644--- a/pkg/common/http_test.go+++ b/pkg/common/http_test.go@@ -229,7 +229,7 @@ func TestRetryableHTTPClientBackoff(t *testing.T) {for i, expectedBackoff := range tc.expectedBackoffs {if i < len(actualBackoffs) {// Allow some deviation in timing due to processing delays.- assert.Less(t, math.Abs(float64(actualBackoffs[i]-expectedBackoff)), float64(10*time.Millisecond), "Unexpected backoff duration")+ assert.Less(t, math.Abs(float64(actualBackoffs[i]-expectedBackoff)), float64(15*time.Millisecond), "Unexpected backoff duration")}}})