diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2010-12-13 17:46:23 +0100 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2010-12-13 17:46:23 +0100 |
commit | d5125000ff9d5af0f3b4b4c1dde9230c2438b110 (patch) | |
tree | 4ae6c30974ccec2dd1ebcf757fdd26cfc3cb5000 /tests/macipmap.t | |
parent | 49e8041b484d32f2b18443f2d60184a83eb0392a (diff) |
Speed up testing a little bit
Lower timeout values to max 5s, so we can lower sleep values too.
Diffstat (limited to 'tests/macipmap.t')
-rw-r--r-- | tests/macipmap.t | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/macipmap.t b/tests/macipmap.t index 7cf0cff..ddc1393 100644 --- a/tests/macipmap.t +++ b/tests/macipmap.t @@ -87,11 +87,11 @@ # Network: Delete test set 0 ipset -X test # Range: Create a set from a valid range with timeout -0 ipset -N test macipmap --from 2.0.0.1 --to 2.1.0.0 timeout 10 +0 ipset -N test macipmap --from 2.0.0.1 --to 2.1.0.0 timeout 5 # Range: Add lower boundary -0 ipset -A test 2.0.0.1 timeout 8 +0 ipset -A test 2.0.0.1 timeout 4 # Range: Add upper boundary -0 ipset -A test 2.1.0.0 timeout 5 +0 ipset -A test 2.1.0.0 timeout 3 # Range: Test lower boundary 0 ipset -T test 2.0.0.1 # Range: Test upper boundary @@ -107,7 +107,7 @@ # Range: Try to add value after upper boundary 1 ipset -A test 2.1.0.1 # Range: Try to add value with MAC -0 ipset -A test 2.0.0.2,00:11:22:33:44:55 timeout 8 +0 ipset -A test 2.0.0.2,00:11:22:33:44:55 timeout 4 # Range: Test value with invalid MAC 1 ipset -T test 2.0.0.2,00:11:22:33:44:56 # Range: Test value with valid MAC @@ -122,10 +122,10 @@ 0 ipset -L test | sed 's/timeout ./timeout x/' > .foo # Range: Check listing 0 diff -I 'Size in memory.*' .foo macipmap.t.list3 && rm .foo -# Range: wait 10s so that elements can timeout -0 sleep 10 +# Range: sleep 5s so that elements can timeout +0 sleep 5 # Range: List set -0 ipset -L test > .foo +0 ipset -L test | sed 's/timeout ./timeout x/' > .foo # Range: Check listing 0 diff -I 'Size in memory.*' .foo macipmap.t.list2 && rm .foo # Range: Flush test set |