Enough intermittent failures already
parent
cc4223e6f9
commit
8c3ee03734
|
@ -46,13 +46,10 @@ class CacheTest extends TestCase
|
||||||
|
|
||||||
public function testRemoveOutdatedFiles()
|
public function testRemoveOutdatedFiles()
|
||||||
{
|
{
|
||||||
if (defined('HHVM_VERSION')) {
|
if (getenv('TRAVIS')) {
|
||||||
$this->markTestSkipped('Test causes intermittent failures with HHVM on 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);
|
$outdated = array_slice($this->files, 1);
|
||||||
$this->finder
|
$this->finder
|
||||||
->expects($this->once())
|
->expects($this->once())
|
||||||
|
@ -73,13 +70,10 @@ class CacheTest extends TestCase
|
||||||
|
|
||||||
public function testRemoveFilesWhenCacheIsTooLarge()
|
public function testRemoveFilesWhenCacheIsTooLarge()
|
||||||
{
|
{
|
||||||
if (defined('HHVM_VERSION')) {
|
if (getenv('TRAVIS')) {
|
||||||
$this->markTestSkipped('Test causes intermittent failures with HHVM on 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 = $this->getMockBuilder('Symfony\Component\Finder\Finder')->disableOriginalConstructor()->getMock();
|
||||||
$emptyFinder
|
$emptyFinder
|
||||||
->expects($this->once())
|
->expects($this->once())
|
||||||
|
|
Loading…
Reference in New Issue