Skip to content

Commit 285b7a2

Browse files
committed
tests: uses only single temp dir
1 parent 629db26 commit 285b7a2

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

tests/Database/connect.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
}
2121

2222
if (strpos($options['dsn'], 'sqlite::memory:') === FALSE) {
23-
Tester\Environment::lock($options['dsn'], dirname(TEMP_DIR));
23+
Tester\Environment::lock($options['dsn'], TEMP_DIR);
2424
}
2525

2626
$driverName = $connection->getPdo()->getAttribute(PDO::ATTR_DRIVER_NAME);

tests/bootstrap.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@
1515

1616

1717
// create temporary directory
18-
define('TEMP_DIR', __DIR__ . '/tmp/' . getmypid());
19-
@mkdir(dirname(TEMP_DIR)); // @ - directory may already exist
20-
Tester\Helpers::purge(TEMP_DIR);
18+
define('TEMP_DIR', __DIR__ . '/tmp');
19+
@mkdir(TEMP_DIR); // @ - directory may already exist
2120

2221

2322
function before(\Closure $function = NULL)

0 commit comments

Comments
 (0)