File: 0001-testsuite-send-4-requests-instead-of-infinity.patch

package info (click to toggle)
opentracker 1.0%2Bgit20250425.b20b0b8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 612 kB
  • sloc: ansic: 5,833; perl: 176; makefile: 70; sh: 62
file content (25 lines) | stat: -rw-r--r-- 809 bytes parent folder | download | duplicates (2)
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: Agathe Porte <gagath@debian.org>
Date: Tue, 24 May 2022 14:36:47 +0200
Subject: testsuite: send 4 requests instead of infinity

For Debian autopkgtest needs, we want to run send a definite amount of
requests instead of an infinite amount. 4 requests should be enough, as
response time can be quite long.

Forwarded: not-needed
---
 tests/testsuite.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/testsuite.sh b/tests/testsuite.sh
index dace2c6..fe480f5 100644
--- a/tests/testsuite.sh
+++ b/tests/testsuite.sh
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-while true; do
+for _ in $(seq 4); do
   request_string="GET /announce?info_hash=0123456789012345678\
 %$(printf %02X $(( $RANDOM & 0xf )) )\
 &ip=$(( $RANDOM & 0xf )).$(( $RANDOM & 0xf )).13.16&port=$(( $RANDOM & 0xff )) HTTP/1.0\n"