[PATCH] ipset/iptree: Increase sleep time for test

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Using a timeout of five seconds and sleeping for five seconds calls for race
conditions. Increase the sleep time to six seconds to make sure we give the set
enough time for the timeout to actually trigger.
---
 tests/iptree.t |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- ipset.orig/tests/iptree.t
+++ ipset/tests/iptree.t
@@ -28,8 +28,8 @@
 1 ipset -T test 2.0.0.2
 # Timeout: Test value not added to the set
 1 ipset -T test 192.168.68.70
-# Timeout: Sleep 5s so that entries can time out
-0 sleep 5
+# Timeout: Sleep 6s so that entries can time out
+0 sleep 6
 # Timeout: Test first random value
 1 ipset -T test 2.0.0.1
 # Timeout: Test second random value
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux