opengnsys-opentracker/debian/patches/0001-testsuite-send-4-reque...

26 lines
809 B
Diff

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"