Mercurial > hg > nginx-tests
diff mail_smtp_greeting_delay.t @ 970:c227348453db
Tests: simplified parallel modifications in mail tests.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Fri, 08 Jul 2016 02:21:16 +0300 |
parents | e9064d691790 |
children | 6ea73d9f42e0 |
line wrap: on
line diff
--- a/mail_smtp_greeting_delay.t Fri Jul 08 02:21:14 2016 +0300 +++ b/mail_smtp_greeting_delay.t Fri Jul 08 02:21:16 2016 +0300 @@ -34,11 +34,11 @@ mail { proxy_pass_error_message on; - auth_http http://127.0.0.1:%%PORT_0%%/mail/auth; + auth_http http://127.0.0.1:8080/mail/auth; xclient off; server { - listen 127.0.0.1:%%PORT_1%%; + listen 127.0.0.1:8025; protocol smtp; smtp_greeting_delay 1s; } @@ -51,7 +51,7 @@ # With smtp_greeting_delay session expected to be closed after first error # message if client sent something before greeting. -my $s = Test::Nginx::SMTP->new(PeerAddr => '127.0.0.1:' . port(1)); +my $s = Test::Nginx::SMTP->new(); $s->send('HELO example.com'); $s->check(qr/^5.. /, "command before greeting - session must be rejected"); ok($s->eof(), "session have to be closed");