changeset 1702:f0a02a429a59

Tests: fixed spurious mail_imap_ssl.t failures after 408fe0dd3fed. After 408fe0dd3fed, shutdown of nginx worker processes might happen before the last auth_http request is accepted, leading to the "log - trusted cert" test failure. Fix is to restore $s->read() call removed in 408fe0dd3fed.
author Maxim Dounin <mdounin@mdounin.ru>
date Fri, 18 Jun 2021 03:54:36 +0300
parents 408fe0dd3fed
children 8b7ab9245916
files mail_imap_ssl.t
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mail_imap_ssl.t
+++ b/mail_imap_ssl.t
@@ -207,6 +207,7 @@ my $s = Test::Nginx::IMAP->new(PeerAddr 
 );
 $s->ok('trusted cert');
 $s->send('1 AUTHENTICATE PLAIN ' . $cred->("s5"));
+$s->read();
 undef $s;
 
 # test auth_http request header fields with access_log