Skip to content

Commit

Permalink
tests: fixed mkdir() race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Jan 26, 2017
1 parent dbe9f03 commit ba4a57b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@

// create temporary directory
define('TEMP_DIR', __DIR__ . '/tmp');
@mkdir(TEMP_DIR); // @ - directory may already exist
@mkdir(dirname(TEMP_DIR));
@mkdir(TEMP_DIR);


function before(\Closure $function = NULL)
Expand Down

0 comments on commit ba4a57b

Please sign in to comment.