From 02f8b07dd4191d8619dce5f16ec0f75f553904ba Mon Sep 17 00:00:00 2001 From: Alexander Bluhm Date: Fri, 17 Nov 2023 12:47:27 +0100 Subject: [PATCH] Fix race in ttl test. Increase timeout for checking TTL update by one second. --- regress/args-ttl.pl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/regress/args-ttl.pl b/regress/args-ttl.pl index 19f0b84..3216810 100644 --- a/regress/args-ttl.pl +++ b/regress/args-ttl.pl @@ -62,8 +62,9 @@ sighup => 1, ); - # wait until TTL has expired, pfresolvd delays another second - my $timeout = 3; + # wait until TTL 2 has expired, pfresolvd delays another second, + # waiting another second is against a race in the test + my $timeout = 4; my ($updates, $deleted) = (2, 1); my $table = qr/updated addresses for pf table .*, deleted: $deleted,/;