Skip to content

Commit

Permalink
MDL-55640 setuplib: test_localcachedir fails sporadically
Browse files Browse the repository at this point in the history
  • Loading branch information
sammarshallou committed Nov 30, 2023
1 parent 253028f commit e133aee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tests/setuplib_test.php
Expand Up @@ -106,8 +106,8 @@ public function test_localcachedir() {

// 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);
Expand Down

0 comments on commit e133aee

Please sign in to comment.