| 1 |
Descriptionscip-debian debian golang-github-dlclark-regexp2 1.11.0+ds1-1 golang-github-dlclark-regexp2/patches/`0001-increase-timeout-to-10ms.patch`#Description.: Increase timeout from 1 ms to 10 ms to prevent test errors |
| 2 |
For example: |
| 3 |
=== RUN TestDeadline |
| 4 |
fastclock_test.go:31: deadline (1ms) expired too soon (after 1.415402ms) |
| 5 |
=== RUN TestStopTimeoutClock |
| 6 |
fastclock_test.go:53: Expected duration less than 2ms, got 2.504717ms |
| 7 |
Authorscip-debian debian golang-github-dlclark-regexp2 1.11.0+ds1-1 golang-github-dlclark-regexp2/patches/`0001-increase-timeout-to-10ms.patch`#Author.: Anthony Fok <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 8 |
Originscip-debian debian golang-github-dlclark-regexp2 1.11.0+ds1-1 golang-github-dlclark-regexp2/patches/`0001-increase-timeout-to-10ms.patch`#Origin.: vendor |
| 9 |
Forwardedscip-debian debian golang-github-dlclark-regexp2 1.11.0+ds1-1 golang-github-dlclark-regexp2/patches/`0001-increase-timeout-to-10ms.patch`#Forwarded.: not-needed |
| 10 |
Last-Updatescip-debian debian golang-github-dlclark-regexp2 1.11.0+ds1-1 golang-github-dlclark-regexp2/patches/`0001-increase-timeout-to-10ms.patch`#Last-Update.: 2023-10-11 |
| 11 |
--- |
| 12 |
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ |
| 13 |
--- a/fastclock_test.goscip-debian debian golang-github-dlclark-regexp2 1.11.0+ds1-1 golang-github-dlclark-regexp2/upstream/`fastclock_test.go`: |
| 14 |
+++ b/fastclock_test.goscip-debian debian golang-github-dlclark-regexp2 1.11.0+ds1-1 golang-github-dlclark-regexp2/upstream/`fastclock_test.go`: |
| 15 |
@@ -9,7 +9,8 @@ |
| 16 |
func init() { |
| 17 |
//speed up testing by making the timeout clock 1ms instead of 100ms... |
| 18 |
//bad for benchmark tests though |
| 19 |
|
| 20 |
+ // Debian: Prevent failure on busy/slower machines by setting to 10ms instead |
| 21 |
+ SetTimeoutCheckPeriod(time.Millisecond * 10) |
| 22 |
} |
| 23 |
func TestDeadline(t *testing.T) { |
| 24 |
for _, delay := range []time.Duration{ |