File: 05-delay-the-set-with-timeout-resizing-test.patch

package info (click to toggle)
ipset 7.24-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,376 kB
  • sloc: ansic: 32,867; sh: 5,855; makefile: 246; awk: 3
file content (18 lines) | stat: -rw-r--r-- 475 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Delay the set with timeout resizing test
 The test sometimes finish early and faster than 1 second, the condition
 fail with false-positive 
Author: Neutron Soutmun <neo.neutron@gmail.com>
Forwarded: not-needed 
Last-Update: 2014-04-04

--- a/tests/resizet.sh
+++ b/tests/resizet.sh
@@ -102,6 +102,8 @@
     	done | $ipset restore
     	;;
 esac
+
+sleep 1
 $ipset l test | grep ^$ip | while read x y z; do
     if [ $z -lt 10 -o $z -gt 100 ]; then
     	exit 1