Welcome! Log In Create A New Profile

Advanced

Re: [PATCH 1 of 3] Tests: style

Sergey Kandaurov
March 20, 2023 11:36AM
> On 10 Mar 2023, at 09:00, Maxim Dounin <mdounin@mdounin.ru> wrote:
>
> # HG changeset patch
> # User Maxim Dounin <mdounin@mdounin.ru>
> # Date 1678424069 -10800
> # Fri Mar 10 07:54:29 2023 +0300
> # Node ID fdebeebd07b160f1d30e18d56e64dfb08570f8b1
> # Parent 1e1d0f3874b0c5b1e399ec76b0198b5c9c265a36
> Tests: style.
>
> diff --git a/lib/Test/Nginx/IMAP.pm b/lib/Test/Nginx/IMAP.pm
> --- a/lib/Test/Nginx/IMAP.pm
> +++ b/lib/Test/Nginx/IMAP.pm
> @@ -66,9 +66,9 @@ sub getline {
> }
>
> while (IO::Select->new($socket)->can_read(8)) {
> - $socket->blocking(0);
> + $socket->blocking(0);
> my $n = $socket->sysread(my $buf, 1024);
> - $socket->blocking(1);
> + $socket->blocking(1);
> last unless $n;
>
> $self->{_read_buffer} .= $buf;
> diff --git a/lib/Test/Nginx/Stream.pm b/lib/Test/Nginx/Stream.pm
> --- a/lib/Test/Nginx/Stream.pm
> +++ b/lib/Test/Nginx/Stream.pm
> @@ -86,7 +86,7 @@ sub read {
> $s->blocking(0);
> if (IO::Select->new($s)->can_read($extra{read_timeout} || 8)) {
> $s->sysread($buf, 1024);
> - };
> + }
>
> log_in($buf);
> return $buf;

Looks good.

For the record, there are similar (unrelated) style bugs,
conveniently found with grep -n '\t ' *.t
auth_basic.t:56: }
js_fetch.t:689: print $client "0" . CRLF . CRLF;
slice.t:117: }

--
Sergey Kandaurov
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH 1 of 3] Tests: style

Maxim Dounin 507 March 10, 2023 12:02AM

[PATCH 2 of 3] Tests: handling of EAGAIN from sysread() with IO::Socket::SSL

Maxim Dounin 116 March 10, 2023 12:02AM

Re: [PATCH 2 of 3] Tests: handling of EAGAIN from sysread() with IO::Socket::SSL

Maxim Dounin 113 March 11, 2023 04:32AM

Re: [PATCH 2 of 3] Tests: handling of EAGAIN from sysread() with IO::Socket::SSL

Sergey Kandaurov 106 March 20, 2023 11:36AM

[PATCH 3 of 3] Tests: adapted session reuse tests to work with TLSv1.3

Maxim Dounin 116 March 10, 2023 12:02AM

Re: [PATCH 3 of 3] Tests: adapted session reuse tests to work with TLSv1.3

Sergey Kandaurov 96 March 20, 2023 11:50AM

Re: [PATCH 3 of 3] Tests: adapted session reuse tests to work with TLSv1.3

Maxim Dounin 148 March 20, 2023 08:00PM

Re: [PATCH 1 of 3] Tests: style

Sergey Kandaurov 102 March 20, 2023 11:36AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 297
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready