changeset 469:1c5a8265f386

Tests: fixed matching for limit_conn_log_level. A debug log can contain non-ASCII characters.
author Valentin Bartenev <vbart@nginx.com>
date Wed, 24 Sep 2014 23:56:41 +0400
parents 684278f71783
children 00275fa9091c
files limit_conn.t
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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