From: Brian Wolff Date: Fri, 11 Nov 2011 15:33:37 +0000 (+0000) Subject: Follow-up r102751 - I think this test was intermitently failing because it was re... X-Git-Tag: 1.31.0-rc.0~26560 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/gestion/rappel_supprimer.php?a=commitdiff_plain;h=7f5ea8a0aa2b81838157f98f715b1d35d8fc7ad6;p=lhc%2Fweb%2Fwiklou.git Follow-up r102751 - I think this test was intermitently failing because it was re-using thumbs generated for previous tests. Add a random number to stop that. --- diff --git a/tests/phpunit/includes/media/ExifRotationTest.php b/tests/phpunit/includes/media/ExifRotationTest.php index 91ea96cd4c..639091d04f 100644 --- a/tests/phpunit/includes/media/ExifRotationTest.php +++ b/tests/phpunit/includes/media/ExifRotationTest.php @@ -11,7 +11,7 @@ class ExifRotationTest extends MediaWikiTestCase { $this->handler = new BitmapHandler(); $this->repo = new FSRepo(array( 'name' => 'temp', - 'directory' => wfTempDir() . '/exif-test-' . time(), + 'directory' => wfTempDir() . '/exif-test-' . time() . '-' . mt_rand(), 'url' => 'http://localhost/thumbtest' )); if ( !wfDl( 'exif' ) ) {