testing: Remove nearly all sleep calls from pretest and posttest scripts
By consistently using the `expect-connection` helper we can avoid pretty much all previously needed calls to sleep.
This commit is contained in:
@@ -7,8 +7,8 @@ moon::iptables -t nat -A POSTROUTING -o eth0 -s 10.1.0.0/16 -p tcp -j SNAT --to-
|
||||
moon::iptables -A FORWARD -i eth1 -o eth0 -s 10.1.0.0/16 -j ACCEPT
|
||||
moon::iptables -A FORWARD -i eth0 -o eth1 -d 10.1.0.0/16 -j ACCEPT
|
||||
carol::ipsec start
|
||||
carol::sleep 1
|
||||
carol::expect-connection medsrv
|
||||
alice::ipsec start
|
||||
alice::sleep 1
|
||||
venus::ipsec start
|
||||
venus::sleep 4
|
||||
venus::sleep 2
|
||||
|
||||
@@ -12,8 +12,8 @@ sun::iptables -t nat -A POSTROUTING -o eth0 -s 10.2.0.0/16 -p tcp -j SNAT --to-s
|
||||
sun::iptables -A FORWARD -i eth1 -o eth0 -s 10.2.0.0/16 -j ACCEPT
|
||||
sun::iptables -A FORWARD -i eth0 -o eth1 -d 10.2.0.0/16 -j ACCEPT
|
||||
carol::ipsec start
|
||||
carol::sleep 1
|
||||
carol::expect-connection medsrv
|
||||
bob::ipsec start
|
||||
bob::sleep 1
|
||||
alice::ipsec start
|
||||
alice::sleep 4
|
||||
alice::sleep 2
|
||||
|
||||
Reference in New Issue
Block a user