File: allow-more-leeway-to-test-min-duration.patch

package info (click to toggle)
golang-github-lestrrat-go-backoff 2.0.8-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 200 kB
  • sloc: makefile: 2
file content (11 lines) | stat: -rw-r--r-- 446 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
Description: allow more minimum leeway duration for tests
Author: Ananthu C V <weepingclown@debian.org>
Bug-Debian: https://bugs.debian.org/1104390
Last-Update: 2025-05-03
--- a/backoff_test.go
+++ b/backoff_test.go
@@ -103,3 +103,3 @@
 
-			min := int64(float64(base) * 0.98)
+			min := int64(float64(base) * 0.95) // apply the same amount of leeway as below
 			max := int64(float64(base) * 1.05) // should be 1.02, but give it a bit of leeway