# HG changeset patch # User Valentin Bartenev # Date 1411588601 -14400 # Node ID 1c5a8265f38651e762dff8753cffc69c1622e33e # Parent 684278f7178373528bbe45b2ce4dab01e3a595d1 Tests: fixed matching for limit_conn_log_level. A debug log can contain non-ASCII characters. diff --git a/limit_conn.t b/limit_conn.t --- a/limit_conn.t +++ b/limit_conn.t @@ -109,8 +109,8 @@ unlike(http_get('/1'), qr/^HTTP\/1.. 503 $s = http_get('/custom/w', start => 1); like(http_get('/custom'), qr/^HTTP\/1.. 501 /, 'limit_conn_status'); -like(`grep -F '[info]' ${\($t->testdir())}/error.log`, - qr/limiting connections by zone "custom"/s, +like($t->read_file('error.log'), + qr/\[info\].*limiting connections by zone "custom"/, 'limit_conn_log_level'); # limited after unlimited