changeset 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 3dd8c7acf3ad
children 04832fc79805
files lib/Test/Nginx.pm
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
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)";
 	}