File: extend-timeout-SendSignal_Batch-test.patch

package info (click to toggle)
golang-github-google-goexpect 0.0~git20210430.ab937bf-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 388 kB
  • sloc: sh: 34; makefile: 3
file content (25 lines) | stat: -rw-r--r-- 837 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
25
From: Otto Kekäläinen <otto@debian.org>
Date: Mon, 19 May 2025 20:17:06 +0000
Subject: Increase timeout for SendSignal_Batch test

Increase the timeout for the ExampleGExpect_SendSignal_Batch test from
20s to 30s. This test was failing in the Salsa CI environment due to a
timeout, suggesting the test process takes longer to respond there
compared to local environments.
---
 expect_test.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/expect_test.go b/expect_test.go
index eb6e271..31c1d76 100644
--- a/expect_test.go
+++ b/expect_test.go
@@ -1356,7 +1356,7 @@ func ExampleGExpect_SendSignal_Batch() {
 		&BExp{`Waiting for signal`},
 		&BSig{syscall.SIGUSR1},
 		&BExp{`USR1`},
-	}, time.Second*20); err != nil {
+	}, time.Second*30); err != nil {
 		fmt.Printf("ExpectBatch failed: %v\n", err)
 		return
 	}