Skip to content

Commit 5ad047a

Browse files
committed
tests: fix race condition
1 parent b72d733 commit 5ad047a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/bootstrap.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

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

5-
const TEMP_DIR = __DIR__ . '/../temp';
6-
75
Tester\Environment::setup();
6+
7+
define('TEMP_DIR', __DIR__ . '/tmp/' . getmypid());
8+
@mkdir(dirname(TEMP_DIR)); // @ - directory may already exist
89
Tester\Helpers::purge(TEMP_DIR);

0 commit comments

Comments
 (0)