Skip to content

Commit

Permalink
CLI-1336: Isolate cache dir per test (#1747)
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell authored May 29, 2024
1 parent 57a741f commit ce9f7a2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ public function registerContainerConfiguration(LoaderInterface $loader): void {
$this->registerExtensionConfiguration($loader);
}

/** @infection-ignore-all */
public function getCacheDir(): string {
$testToken = getenv('TEST_TOKEN') ?? '';
return parent::getCacheDir() . $testToken;
}

protected function registerExtensionConfiguration(mixed $loader): void {
// Search for plugins.
$finder = new Finder();
Expand Down

0 comments on commit ce9f7a2

Please sign in to comment.