File: timeout.patch

package info (click to toggle)
golang-github-hashicorp-go-checkpoint 0.0~git20151022.0.e4b2dc3-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 164 kB
  • ctags: 51
  • sloc: makefile: 3; sh: 3
file content (16 lines) | stat: -rw-r--r-- 579 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: give "TestCheckInterval" slightly more leeway for successful completion
Author: Tianon Gravi <tianon@debian.org>

Index: golang-github-hashicorp-go-checkpoint/checkpoint_test.go
===================================================================
--- golang-github-hashicorp-go-checkpoint.orig/checkpoint_test.go
+++ golang-github-hashicorp-go-checkpoint/checkpoint_test.go
@@ -159,7 +159,7 @@ func TestCheckInterval(t *testing.T) {
 
 	select {
 	case <-calledCh:
-	case <-time.After(time.Second):
+	case <-time.After(2 * time.Second):
 		t.Fatalf("timeout")
 	}
 }