]> git.ipfire.org Git - thirdparty/ipset.git/commitdiff
Tests: When verifying comments/timeouts, make sure entries don't expire
authorJozsef Kadlecsik <kadlec@netfilter.org>
Fri, 30 Dec 2022 11:50:36 +0000 (12:50 +0100)
committerJozsef Kadlecsik <kadlec@netfilter.org>
Fri, 30 Dec 2022 11:50:36 +0000 (12:50 +0100)
tests/comment.t
tests/netnetgen.sh

index a4b9973d888fcb4168c970e71f9968863d0e7de9..8f579198ea138d7b529392e6b5586361b1042d21 100644 (file)
 # Hash comment: Stress test with comments and timeout
 0 ./netnetgen.sh comment timeout | ipset restore
 # Hash comment: List set and check the number of elements
-0 n=`ipset -L test|grep '^10.'|wc -l` && test $n -eq 87040
+0 n=`ipset save test|grep 'add test 10.'|wc -l` && test $n -eq 87040
 # Hash comment: Destroy test set
 0 ipset destroy test
 # Hash comment: create set with timeout
index f2a31ccf05d31afd395fdea35741d6d6f2b9969e..64bb70d140c487cdc360c665f96407020fa20b04 100755 (executable)
@@ -6,7 +6,7 @@ while [ -n "$1" ]; do
            comment=" comment"
            ;;
        timeout)
-           timeout=" timeout 5"
+           timeout=" timeout 10"
            ;;
        *)
            ;;