Package: golang-github-ncw-swift / 0.0~git20180327.b2a7479-2

0001-Fix-TestWatchdogReaderOnSlowNetwork.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Shengjing Zhu <zhsj@debian.org>
Date: Sat, 16 Mar 2019 15:34:46 +0800
Subject: Fix TestWatchdogReaderOnSlowNetwork

Author: Nick Craig-Wood
Bug: https://github.com/ncw/swift/issues/119
Bug-Debian: https://bugs.debian.org/923804
---
 watchdog_reader_test.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/watchdog_reader_test.go b/watchdog_reader_test.go
index 8e8f013..08dabff 100644
--- a/watchdog_reader_test.go
+++ b/watchdog_reader_test.go
@@ -98,7 +98,7 @@ func TestWatchdogReaderOnSlowNetwork(t *testing.T) {
 		delayPerByte: 200 * time.Millisecond / time.Duration(len(byteString)),
 	}
 
-	timer, firedChan := setupTimer(10 * time.Millisecond)
+	timer, firedChan := setupTimer(100 * time.Millisecond)
 	wr := newWatchdogReader(reader, 190*time.Millisecond, timer)
 
 	//use io.ReadFull instead of ioutil.ReadAll here because ReadAll already does