mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Updating expiry time to be within tolerances of memcached.
This commit is contained in:
parent
9ac8d1af1b
commit
7c79583caa
1 changed files with 1 additions and 4 deletions
|
@ -194,7 +194,7 @@ class MemcacheEngineTest extends CakeTestCase {
|
|||
$result = Cache::read('other_test');
|
||||
$this->assertFalse($result);
|
||||
|
||||
Cache::config('memcache', array('duration' => '+31 day'));
|
||||
Cache::config('memcache', array('duration' => '+30 day'));
|
||||
$data = 'this is a test of the emergency broadcasting system';
|
||||
$result = Cache::write('long_expiry_test', $data);
|
||||
$this->assertTrue($result);
|
||||
|
@ -204,9 +204,6 @@ class MemcacheEngineTest extends CakeTestCase {
|
|||
$expecting = $data;
|
||||
$this->assertEqual($result, $expecting);
|
||||
|
||||
$result = Cache::read('long_expiry_test');
|
||||
$this->assertTrue($result);
|
||||
|
||||
Cache::config('memcache', array('duration' => 3600));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue