Updating expiry time to be within tolerances of memcached.

This commit is contained in:
mark_story 2010-09-11 15:44:52 -04:00
parent 9ac8d1af1b
commit 7c79583caa

View file

@ -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));
}