summaryrefslogtreecommitdiffstats
path: root/tests/iptree.t
diff options
context:
space:
mode:
Diffstat (limited to 'tests/iptree.t')
-rw-r--r--tests/iptree.t8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/iptree.t b/tests/iptree.t
index 76cac54..0e661ce 100644
--- a/tests/iptree.t
+++ b/tests/iptree.t
@@ -38,6 +38,14 @@
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: Add entry with 3s timeout value
+0 ipset -A test 2.0.0.2,3
+# Timeout: Test entry added with 3s timeout
+0 ipset -T test 2.0.0.2
+# Timeout: Sleep 4s so that entry can time out
+0 sleep 4
+# Timeout: Test entry added with 3s timeout
+1 ipset -T test 2.0.0.2
# Timeout: Delete test set
0 ipset -X test
# eof