File: go_testing_timeout.patch

package info (click to toggle)
thrift 0.19.0-4
  • links: PTS
  • area: main
  • in suites: sid, trixie
  • size: 28,396 kB
  • sloc: cpp: 102,127; java: 26,959; ansic: 21,694; pascal: 14,989; cs: 10,367; python: 9,742; javascript: 9,618; ruby: 8,316; php: 6,978; erlang: 6,428; sh: 5,340; makefile: 3,972; perl: 3,351; yacc: 1,145; xml: 1,053; ml: 962; lisp: 664; lex: 322
file content (21 lines) | stat: -rw-r--r-- 726 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
Description: increase go test timeout for slow ppc64el
 Multiply TestNoHangDuringStopFromClientNoDataSendDuringAcceptLoop timeout by
 the magnitude of 100x.
Author: Laszlo Boszormenyi (GCS) <gcs@debian.org>
Bug-Debian: https://bugs.debian.org/1087611
Forwarded: no
Last-Update: 2025-01-22

---

--- thrift-0.19.0.orig/lib/go/thrift/simple_server_test.go
+++ thrift-0.19.0/lib/go/thrift/simple_server_test.go
@@ -205,7 +205,7 @@ func TestNoHangDuringStopFromClientNoDat
 	}
 	time.Sleep(networkWaitDuration)
 
-	const serverStopTimeout = 50 * time.Millisecond
+	const serverStopTimeout = 5000 * time.Millisecond
 	backupServerStopTimeout := ServerStopTimeout
 	t.Cleanup(func() {
 		ServerStopTimeout = backupServerStopTimeout