From aa14493e4788f602d86defb3fa6509d41f01664b Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Sat, 18 Mar 2017 22:35:31 -0400 Subject: [tests] reduce time waiting for backends to start reduce time spent waiting for backends to start tests check for active listening port before proceeding test runs now complete in about 2/3 the time --- tests/LightyTest.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/LightyTest.pm') diff --git a/tests/LightyTest.pm b/tests/LightyTest.pm index f1865896..74caea1e 100644 --- a/tests/LightyTest.pm +++ b/tests/LightyTest.pm @@ -122,10 +122,10 @@ sub wait_for_port_with_proc { my $self = shift; my $port = shift; my $child = shift; - my $timeout = 10*10; # 10 secs (valgrind might take a while), select waits 0.1 s + my $timeout = 10*50; # 10 secs (valgrind might take a while), select waits 0.02 s while (0 == $self->listening_on($port)) { - select(undef, undef, undef, 0.1); + select(undef, undef, undef, 0.02); $timeout--; # the process is gone, we failed -- cgit v1.2.1