Mercurial > hg > nginx-tests
diff lib/Test/Nginx.pm @ 281:53068d38a3ce
Tests: truncate messages to 2048 bytes instead of 4096.
The latter causes TAP parsing problems on CentOS 5 and 6.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 16 Apr 2013 17:38:11 +0400 |
parents | 6cbcfb4ef7ee |
children | 8fcc46212e5e |
line wrap: on
line diff
--- a/lib/Test/Nginx.pm +++ b/lib/Test/Nginx.pm @@ -363,9 +363,9 @@ sub log_core { ($prefix, $msg) = ('', $prefix) unless defined $msg; $prefix .= ' ' if length($prefix) > 0; - if (length($msg) > 4096) { - $msg = substr($msg, 0, 4096) - . "(...logged only 4096 of " . length($msg) + if (length($msg) > 2048) { + $msg = substr($msg, 0, 2048) + . "(...logged only 2048 of " . length($msg) . " bytes)"; }