From d228b0665508bcdc7c1529a74aa24274d230dae7 Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Thu, 24 Dec 2020 23:09:23 -0500 Subject: [PATCH] [tests] slight speed up checking for server ready make connection attempt every 10ms instead of every 20ms --- tests/LightyTest.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/LightyTest.pm b/tests/LightyTest.pm index 29ea0bf3..04496f66 100644 --- a/tests/LightyTest.pm +++ b/tests/LightyTest.pm @@ -124,10 +124,10 @@ sub wait_for_port_with_proc { my $self = shift; my $port = shift; my $child = shift; - my $timeout = 10*50; # 10 secs (valgrind might take a while), select waits 0.02 s + my $timeout = 10*100; # 10 secs (valgrind might take a while), select waits 0.01 s while (0 == $self->listening_on($port)) { - select(undef, undef, undef, 0.02); + select(undef, undef, undef, 0.01); $timeout--; # the process is gone, we failed