| 1 |
From: Shengjing Zhu <[email protected]> |
| 2 |
Date: Tue, 31 Jan 2023 22:15:14 +0800 |
| 3 |
Subject: flaky TestTimeout |
| 4 |
|
| 5 |
--- |
| 6 |
client_test.go | 2 +- |
| 7 |
1 file changed, 1 insertion(+), 1 deletion(-) |
| 8 |
|
| 9 |
diff --git a/client_test.go b/client_test.go |
| 10 |
index ff0c218..d954420 100644 |
| 11 |
--- a/client_test.go |
| 12 |
+++ b/client_test.go |
| 13 |
@@ -654,7 +654,7 @@ func TestTimeout(t *testing.T) { |
| 14 |
start := time.Now() |
| 15 |
|
| 16 |
timeout := time.Millisecond |
| 17 |
|
| 18 |
+ allowable := timeout + 100*time.Millisecond |
| 19 |
|
| 20 |
_, _, err := exchange(m, addrstr, timeout) |
| 21 |
if err == nil { |