Mercurial > hg > nginx-tests
diff lib/Test/Nginx/SMTP.pm @ 951:9361c7eddfc1
Tests: parallel tests support.
author | Andrey Zelenkov <zelenkov@nginx.com> |
---|---|
date | Tue, 21 Jun 2016 16:37:58 +0300 |
parents | 481d705b8610 |
children | 1edb092149e2 |
line wrap: on
line diff
--- a/lib/Test/Nginx/SMTP.pm +++ b/lib/Test/Nginx/SMTP.pm @@ -93,9 +93,11 @@ sub authok { ############################################################################### sub smtp_test_daemon { + my ($port) = @_; + my $server = IO::Socket::INET->new( Proto => 'tcp', - LocalAddr => '127.0.0.1:8026', + LocalAddr => '127.0.0.1:' . ($port || 8026), Listen => 5, Reuse => 1 )