mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-38110 cache: increased ttl unit test value to avoid timing issues
This commit is contained in:
parent
1dd6835d8c
commit
0bdf592e6e
4
cache/tests/cache_test.php
vendored
4
cache/tests/cache_test.php
vendored
@ -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'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user