From 958b6a0ebc0c9b520bf5c738e02ec304f87aff0b Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Mon, 8 Feb 2010 20:08:50 +0000 Subject: [PATCH] MINOR: Speed up cache test (1s is as good a test expiry as 8s) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.4@98433 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- tests/CacheTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/CacheTest.php b/tests/CacheTest.php index 205eda05b..3a96194d5 100644 --- a/tests/CacheTest.php +++ b/tests/CacheTest.php @@ -19,14 +19,14 @@ class CacheTest extends SapphireTest { } function testCacheLifetime() { - SS_Cache::set_cache_lifetime('test', 4, 20); + SS_Cache::set_cache_lifetime('test', 0.5, 20); $cache = SS_Cache::factory('test'); $cache->save('Good', 'cachekey'); $this->assertEquals('Good', $cache->load('cachekey')); - sleep(8); + sleep(1); $this->assertFalse($cache->load('cachekey')); }