Welcome! Log In Create A New Profile

Advanced

[nginx-test] Allow some syslog message to arrive in either order

Dionna Amalie Glaze
June 30, 2020 07:10PM
# HG changeset patch

# User Dionna Glaze <dionnaglaze@google.com>

# Date 1593542175 25200

# Tue Jun 30 11:36:15 2020 -0700

# Node ID a2a00a127689c64d21842d2aba7f1dc53e06b095

# Parent f55d25e08b3edaab6f3a30a000ac486334994978

Allow some syslog message to arrive in either order


This test flakes occasionally with good,work arriving as work,good.


diff --git a/syslog.t b/syslog.t

--- a/syslog.t

+++ b/syslog.t

*@@ -220,7 +220,7 @@ http_get('/if/work?logme=yes');*



get_syslog('/a');



-like($t->read_file('s_if.log'), qr/good:404.*work:404/s, 'syslog if
success');

+like($t->read_file('s_if.log'), qr/*(*good:404.*work:404
*)|(work:404.*good:404)*/s, 'syslog if success');

unlike($t->read_file('s_if.log'), qr/(if:|empty:|zero:)404/, 'syslog if
fail');



like(get_syslog('/nohostname'),

--
-Dionna Glaze, PhD (she/her)
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx-test] Allow some syslog message to arrive in either order

Dionna Amalie Glaze 341 June 30, 2020 07:10PM

Re: [nginx-test] Allow some syslog message to arrive in either order

Sergey Kandaurov 118 July 06, 2020 11:12AM



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

Online Users

Guests: 112
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