Permalink
Browse files

Updating expiry time to be within tolerances of memcached.

  • Loading branch information...
1 parent 9ac8d1a commit 7c79583caab9a3175344b486823cd7efdf106f7f @markstory markstory committed Sep 11, 2010
Showing with 1 addition and 4 deletions.
  1. +1 −4 cake/tests/cases/libs/cache/memcache.test.php
@@ -194,7 +194,7 @@ function testExpiry() {
$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 @@ function testExpiry() {
$expecting = $data;
$this->assertEqual($result, $expecting);
- $result = Cache::read('long_expiry_test');
- $this->assertTrue($result);
-
Cache::config('memcache', array('duration' => 3600));
}

0 comments on commit 7c79583

Please sign in to comment.