From bf1ad4d240b1f971b4bab435d7c14ad3187c13e6 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 21 Jan 2022 16:15:28 +0100 Subject: [PATCH] Make sure test runs in isolated dir --- tests/Composer/Test/Repository/Vcs/GitHubDriverTest.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/Composer/Test/Repository/Vcs/GitHubDriverTest.php b/tests/Composer/Test/Repository/Vcs/GitHubDriverTest.php index efafa0626..6ec9c25dc 100644 --- a/tests/Composer/Test/Repository/Vcs/GitHubDriverTest.php +++ b/tests/Composer/Test/Repository/Vcs/GitHubDriverTest.php @@ -261,6 +261,7 @@ class GitHubDriverTest extends TestCase // clean local clone if present $fs = new Filesystem(); $fs->removeDirectory(sys_get_temp_dir() . '/composer-test'); + $this->config->merge(['config' => ['cache-vcs-dir' => sys_get_temp_dir() . '/composer-test/cache']]); $process = $this->getProcessExecutorMock(); $process->expects(array(