MDL-38110 cache: increased ttl unit test value to avoid timing issues

This commit is contained in:
Sam Hemelryk 2013-02-21 09:52:21 +13:00
parent 1dd6835d8c
commit 0bdf592e6e

View File

@ -422,7 +422,7 @@ class cache_phpunit_tests extends advanced_testcase {
'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 @@ class cache_phpunit_tests extends advanced_testcase {
$this->assertTrue($cache->set('test', 'test'));
$this->assertEquals('test', $cache->get('test'));
}
}
}