MDL-55640 setuplib: test_localcachedir fails sporadically

This commit is contained in:
sam marshall
2023-11-30 13:57:48 +00:00
parent 6ff6327a6b
commit 006eaeef08
+2 -2
View File
@@ -106,8 +106,8 @@ class setuplib_test extends \advanced_testcase {
// Delete existing localcache directory, as this is testing first call
// to make_localcache_directory.
remove_dir($CFG->localcachedir, true);
$dir = make_localcache_directory('', false);
$this->assertTrue(remove_dir($CFG->localcachedir));
$dir = make_localcache_directory('');
$this->assertSame($CFG->localcachedir, $dir);
$this->assertFileDoesNotExist("$CFG->localcachedir/.htaccess");
$this->assertFileExists($timestampfile);