Extend the timeout for dead containers to 30 seconds,
but remove them if they are destroyed, to reduce starvation when users are creating and destroying containers quickly.
This commit is contained in:
1 parent
b2b293a8ee
commit
e468399616
4 files changed
+15
-3
No files matched your search
@@ -30,7 +30,7 @@ assert_raises "exec_on $HOST1 c5 $PING $C6"
|
||||
# check that restart retains the same IP, and reclaims it in IPAM
|
||||
weave_on $HOST2 restart c6
|
||||
assert_raises "exec_on $HOST1 c5 $PING $C6"
|
||||
sleep 6 # past the IPAM timeout
|
||||
sleep 31 # past the IPAM timeout
|
||||
start_container $HOST2 net:$SUBNET_2 --name=c7
|
||||
C7=$(container_ip $HOST2 c7)
|
||||
assert_raises "[ $C6 != $C7 ]"
|
||||
|
||||
Reference in new issue
Block a user