Permalink
Browse files

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

  • Loading branch information...
1 parent 3424086 commit 5fe9dcbbed9db51a8839e95ae5e8799344d83c58 Sam Hemelryk committed with stronk7 Feb 20, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 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);
@@ -775,4 +775,4 @@ public function test_multiple_loaders() {
$this->assertTrue($cache->set('test', 'test'));
$this->assertEquals('test', $cache->get('test'));
}
-}
+}

0 comments on commit 5fe9dcb

Please sign in to comment.