File: 0003-Increase-the-given-latency-in-test.patch

package info (click to toggle)
etcd 3.4.23-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-backports
  • size: 17,924 kB
  • sloc: sh: 2,531; makefile: 398
file content (24 lines) | stat: -rw-r--r-- 732 bytes parent folder | 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: Mon, 25 Feb 2019 01:38:02 +0800
Subject: Increase the given latency in test

We have some slow architectures like mips to support.

Forwarded: no
---
 pkg/proxy/server_test.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/proxy/server_test.go b/pkg/proxy/server_test.go
index 1ca0b68..0f35114 100644
--- a/pkg/proxy/server_test.go
+++ b/pkg/proxy/server_test.go
@@ -546,7 +546,7 @@ func testServerHTTP(t *testing.T, secure, delayTx bool) {
 		t.Fatalf("got %q, expected %q", rs1, exp)
 	}
 
-	lat, rv := 100*time.Millisecond, 10*time.Millisecond
+	lat, rv := 1000*time.Millisecond, 10*time.Millisecond
 	if delayTx {
 		p.DelayTx(lat, rv)
 		defer p.UndelayTx()