1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Enough intermittent failures already

This commit is contained in:
Jordi Boggiano 2014-12-13 15:14:54 +00:00
parent cc4223e6f9
commit 8c3ee03734

View file

@ -46,13 +46,10 @@ class CacheTest extends TestCase
public function testRemoveOutdatedFiles()
{
if (defined('HHVM_VERSION')) {
$this->markTestSkipped('Test causes intermittent failures with HHVM on Travis');
if (getenv('TRAVIS')) {
$this->markTestSkipped('Test causes intermittent failures on Travis');
}
// sleeping a bit to let the filesystem cool down on travis or it has intermittent failures
usleep(50000);
$outdated = array_slice($this->files, 1);
$this->finder
->expects($this->once())
@ -73,13 +70,10 @@ class CacheTest extends TestCase
public function testRemoveFilesWhenCacheIsTooLarge()
{
if (defined('HHVM_VERSION')) {
$this->markTestSkipped('Test causes intermittent failures with HHVM on Travis');
if (getenv('TRAVIS')) {
$this->markTestSkipped('Test causes intermittent failures on Travis');
}
// sleeping a bit to let the filesystem cool down on travis or it has intermittent failures
usleep(50000);
$emptyFinder = $this->getMockBuilder('Symfony\Component\Finder\Finder')->disableOriginalConstructor()->getMock();
$emptyFinder
->expects($this->once())