Try and make test less likely to fail.

This commit is contained in:
mark_story 2012-10-25 21:56:00 -04:00
parent 50a4b792be
commit 559130b87b

View file

@ -229,12 +229,11 @@ class MemcacheEngineTest extends CakeTestCase {
$result = Cache::write('other_test', $data, 'memcache');
$this->assertTrue($result);
sleep(2);
sleep(3);
$result = Cache::read('other_test', 'memcache');
$this->assertFalse($result);
Cache::config('memcache', array('duration' => '+1 second'));
sleep(2);
$result = Cache::read('other_test', 'memcache');
$this->assertFalse($result);