Commit 5d4b7e0e authored by Thomas Müller's avatar Thomas Müller
Browse files

fix failing unit test for the temp manager - concurrently executed unit tests influence each other

parent a6c088a1
......@@ -27,7 +27,7 @@ class TempManager extends \Test\TestCase {
protected function setUp() {
parent::setUp();
$this->baseDir = get_temp_dir() . '/oc_tmp_test';
$this->baseDir = get_temp_dir() . $this->getUniqueID('/oc_tmp_test');
if (!is_dir($this->baseDir)) {
mkdir($this->baseDir);
}
......@@ -39,7 +39,7 @@ class TempManager extends \Test\TestCase {
}
/**
* @param \Psr\Log\LoggerInterface $logger
* @param \OCP\ILogger $logger
* @return \OC\TempManager
*/
protected function getManager($logger = null) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment