mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-19 05:07:56 +00:00
Revert slack ping delivery in routing tests
This commit is contained in:
parent
2296196f7b
commit
91d3f78f8e
@ -829,9 +829,7 @@ test_unreliable_links() {
|
||||
tfw_cat --stdout --stderr
|
||||
received=$(sed -n -e 's/.*\<\([0-9]\+\) packets received.*/\1/p' "$TFWSTDOUT") || error "malformed ping output"
|
||||
duplicates=$(sed -n -e 's/.*\<\([0-9]\+\) duplicates.*/\1/p' "$TFWSTDOUT") || error "malformed ping output"
|
||||
# note this is currently too forgiving as the route may flip
|
||||
# we need to improve this!
|
||||
assert [ "$received" -ge 80 ]
|
||||
assert [ "$received" -ge 98 ]
|
||||
assert [ "$duplicates" -le 2 ]
|
||||
# make sure the path is still there.
|
||||
wait_until path_exists +A +B +C
|
||||
@ -876,9 +874,7 @@ test_unreliable_links2() {
|
||||
tfw_cat --stdout --stderr
|
||||
received=$(sed -n -e 's/.*\<\([0-9]\+\) packets received.*/\1/p' "$TFWSTDOUT") || error "malformed ping output"
|
||||
duplicates=$(sed -n -e 's/.*\<\([0-9]\+\) duplicates.*/\1/p' "$TFWSTDOUT") || error "malformed ping output"
|
||||
# note this is currently too forgiving as the route may flip
|
||||
# we need to improve this!
|
||||
assert [ "$received" -ge 50 ]
|
||||
assert [ "$received" -ge 98 ]
|
||||
assert [ "$duplicates" -le 2 ]
|
||||
wait_until --timeout=20 path_exists +A +B +C +D
|
||||
wait_until --timeout=20 path_exists +D +C +B +A
|
||||
|
Loading…
Reference in New Issue
Block a user