Skip to content

Commit 70adeab

Browse files
committed
test: stop removing app/Commands so parallel CLI and Commands runs do not race
1 parent 896c7b6 commit 70adeab

2 files changed

Lines changed: 0 additions & 11 deletions

File tree

‎tests/system/Commands/Generators/CommandGeneratorTest.php‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,6 @@ protected function tearDown(): void
3535
if (is_file($path)) {
3636
unlink($path);
3737
}
38-
39-
$dir = dirname($path);
40-
$dirFiles = is_dir($dir) ? scandir($dir) : false;
41-
42-
if (str_starts_with($dir, APPPATH . 'Commands') && $dirFiles !== false && count($dirFiles) === 2) {
43-
rmdir($dir);
44-
}
4538
}
4639
}
4740

‎tests/system/Commands/Generators/GeneratorsTest.php‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ public function testSuffixingHasNoEffect(): void
101101
command('make:foo bar --suffix');
102102
$file1 = APPPATH . 'Commands/Bar.php';
103103
$file2 = APPPATH . 'Commands/BarCommand.php';
104-
$dir = dirname($file1);
105104

106105
$this->assertFileExists($file1);
107106
$this->assertFileDoesNotExist($file2);
@@ -112,8 +111,5 @@ public function testSuffixingHasNoEffect(): void
112111
if (is_file($file2)) {
113112
unlink($file2);
114113
}
115-
if (is_dir($dir)) {
116-
rmdir($dir);
117-
}
118114
}
119115
}

0 commit comments

Comments
 (0)