tests/net/if_wg: Allow one second of leeway for rekey.
This commit is contained in:
parent
566d0c30dc
commit
4131d8f567
|
@ -1,4 +1,4 @@
|
||||||
# $NetBSD: t_misc.sh,v 1.4 2020/08/29 07:22:49 tih Exp $
|
# $NetBSD: t_misc.sh,v 1.5 2020/08/31 20:32:58 riastradh Exp $
|
||||||
#
|
#
|
||||||
# Copyright (c) 2018 Ryota Ozaki <ozaki.ryota@gmail.com>
|
# Copyright (c) 2018 Ryota Ozaki <ozaki.ryota@gmail.com>
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
|
@ -106,7 +106,7 @@ wg_rekey_body()
|
||||||
$DEBUG && echo $latest_handshake
|
$DEBUG && echo $latest_handshake
|
||||||
|
|
||||||
# Wait for a reinitiation to be performed again
|
# Wait for a reinitiation to be performed again
|
||||||
sleep $rekey_after_time
|
sleep $((rekey_after_time+1))
|
||||||
|
|
||||||
$ping $ip_wg_peer
|
$ping $ip_wg_peer
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue