From 0bdf592e6ed98a9d1dad8c3bce2bf08accd87695 Mon Sep 17 00:00:00 2001 From: Sam Hemelryk Date: Thu, 21 Feb 2013 09:52:21 +1300 Subject: [PATCH] MDL-38110 cache: increased ttl unit test value to avoid timing issues --- cache/tests/cache_test.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cache/tests/cache_test.php b/cache/tests/cache_test.php index 98d9c5bafe399..71ccce92efec1 100644 --- a/cache/tests/cache_test.php +++ b/cache/tests/cache_test.php @@ -422,7 +422,7 @@ public function test_definition_ttl() { 'mode' => cache_store::MODE_APPLICATION, 'component' => 'phpunit', 'area' => 'ttltest', - 'ttl' => -10 + 'ttl' => -86400 // Set to a day in the past to be extra sure. )); $cache = cache::make('phpunit', 'ttltest'); $this->assertInstanceOf('cache_application', $cache); @@ -766,4 +766,4 @@ public function test_multiple_loaders() { $this->assertTrue($cache->set('test', 'test')); $this->assertEquals('test', $cache->get('test')); } -} \ No newline at end of file +}