Skip to content

Commit

Permalink
tests: fix race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
JanTvrdik committed May 2, 2019
1 parent b72d733 commit 5ad047a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

require __DIR__ . '/../vendor/autoload.php';

const TEMP_DIR = __DIR__ . '/../temp';

Tester\Environment::setup();

define('TEMP_DIR', __DIR__ . '/tmp/' . getmypid());
@mkdir(dirname(TEMP_DIR)); // @ - directory may already exist
Tester\Helpers::purge(TEMP_DIR);

0 comments on commit 5ad047a

Please sign in to comment.