mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Try and make test less likely to fail.
This commit is contained in:
parent
50a4b792be
commit
559130b87b
1 changed files with 1 additions and 2 deletions
|
@ -229,12 +229,11 @@ class MemcacheEngineTest extends CakeTestCase {
|
||||||
$result = Cache::write('other_test', $data, 'memcache');
|
$result = Cache::write('other_test', $data, 'memcache');
|
||||||
$this->assertTrue($result);
|
$this->assertTrue($result);
|
||||||
|
|
||||||
sleep(2);
|
sleep(3);
|
||||||
$result = Cache::read('other_test', 'memcache');
|
$result = Cache::read('other_test', 'memcache');
|
||||||
$this->assertFalse($result);
|
$this->assertFalse($result);
|
||||||
|
|
||||||
Cache::config('memcache', array('duration' => '+1 second'));
|
Cache::config('memcache', array('duration' => '+1 second'));
|
||||||
sleep(2);
|
|
||||||
|
|
||||||
$result = Cache::read('other_test', 'memcache');
|
$result = Cache::read('other_test', 'memcache');
|
||||||
$this->assertFalse($result);
|
$this->assertFalse($result);
|
||||||
|
|
Loading…
Reference in a new issue