Skip to content

Commit

Permalink
Fix race in ttl test.
Browse files Browse the repository at this point in the history
Increase timeout for checking TTL update by one second.
  • Loading branch information
bluhm committed Nov 17, 2023
1 parent aec8c05 commit f67615c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions regress/args-ttl.pl
Original file line number Diff line number Diff line change
Expand Up @@ -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,
# 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,/;
Expand Down

0 comments on commit f67615c

Please sign in to comment.