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

Dionna Amalie Glaze dionnaglaze at google.com
Tue Jun 30 23:09:16 UTC 2020


# HG changeset patch

# User Dionna Glaze <dionnaglaze at 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)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20200630/46f080f1/attachment.htm>


More information about the nginx-devel mailing list