comparison lib/Test/Nginx/HTTP2.pm @ 951:9361c7eddfc1

Tests: parallel tests support.
author Andrey Zelenkov <zelenkov@nginx.com>
date Tue, 21 Jun 2016 16:37:58 +0300
parents c657aaffdaa8
children 1edb092149e2
comparison
equal deleted inserted replaced
950:991ef7781b38 951:9361c7eddfc1
477 my ($port, %extra) = @_; 477 my ($port, %extra) = @_;
478 my $npn = $extra{'npn'}; 478 my $npn = $extra{'npn'};
479 my $alpn = $extra{'alpn'}; 479 my $alpn = $extra{'alpn'};
480 my $s; 480 my $s;
481 481
482 $port = 8080 unless defined $port; 482 $port = ($Test::Nginx::ports[0]{port} || 8080) unless defined $port;
483 483
484 eval { 484 eval {
485 local $SIG{ALRM} = sub { die "timeout\n" }; 485 local $SIG{ALRM} = sub { die "timeout\n" };
486 local $SIG{PIPE} = sub { die "sigpipe\n" }; 486 local $SIG{PIPE} = sub { die "sigpipe\n" };
487 alarm(2); 487 alarm(2);