mirror of
https://github.com/moodle/moodle.git
synced 2025-04-26 19:03:38 +02:00
Merge branch 'w29_MDL-40611_m26_accesslibtest' of https://github.com/skodak/moodle
This commit is contained in:
commit
2be1185132
@ -2327,7 +2327,7 @@ class accesslib_testcase extends advanced_testcase {
|
||||
$this->assertEquals(context_inspection::test_context_cache_size(), CONTEXT_CACHE_MAX_SIZE);
|
||||
} else if ($i == CONTEXT_CACHE_MAX_SIZE) {
|
||||
// once the limit is reached roughly 1/3 of records should be removed from cache
|
||||
$this->assertEquals(context_inspection::test_context_cache_size(), (int)(CONTEXT_CACHE_MAX_SIZE * (2/3) +102));
|
||||
$this->assertEquals(context_inspection::test_context_cache_size(), (int)ceil(CONTEXT_CACHE_MAX_SIZE * (2/3) + 101));
|
||||
}
|
||||
}
|
||||
// We keep the first 100 cached
|
||||
|
Loading…
x
Reference in New Issue
Block a user