From 40f6571312456d1f5ae5e787914e14ea15cb646f Mon Sep 17 00:00:00 2001 From: ptarjan Date: Thu, 21 Nov 2013 15:34:20 -0800 Subject: [PATCH] Use lower memory limits HHVM is ~5x more memory efficient than php-src and it shouldn't make us fail this test Change-Id: I35a69766c42818c222d36e1cf2a7fabe63a4ece5 --- tests/phpunit/includes/GlobalFunctions/GlobalTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/includes/GlobalFunctions/GlobalTest.php b/tests/phpunit/includes/GlobalFunctions/GlobalTest.php index df633b4426..f67f696124 100644 --- a/tests/phpunit/includes/GlobalFunctions/GlobalTest.php +++ b/tests/phpunit/includes/GlobalFunctions/GlobalTest.php @@ -292,11 +292,11 @@ class GlobalTest extends MediaWikiTestCase { unlink( $wgDebugLogFile ); wfDebugMem(); - $this->assertGreaterThan( 5000, preg_replace( '/\D/', '', file_get_contents( $wgDebugLogFile ) ) ); + $this->assertGreaterThan( 1000, preg_replace( '/\D/', '', file_get_contents( $wgDebugLogFile ) ) ); unlink( $wgDebugLogFile ); wfDebugMem( true ); - $this->assertGreaterThan( 5000000, preg_replace( '/\D/', '', file_get_contents( $wgDebugLogFile ) ) ); + $this->assertGreaterThan( 1000000, preg_replace( '/\D/', '', file_get_contents( $wgDebugLogFile ) ) ); unlink( $wgDebugLogFile ); $wgDebugLogFile = $old_log_file; -- 2.20.1