diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-11-25 22:16:48 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-11-25 22:16:48 +0100 |
commit | 5d4b7e0e2b789e47a51dd7d047599dd9f8701e60 (patch) | |
tree | de235496dcdc2edcdb5b38814143b8b8bf78a97f /tests | |
parent | a6c088a1ef1ff8f1e1161ab9a61d8f1e57231b15 (diff) | |
download | nextcloud-server-5d4b7e0e2b789e47a51dd7d047599dd9f8701e60.tar.gz nextcloud-server-5d4b7e0e2b789e47a51dd7d047599dd9f8701e60.zip |
fix failing unit test for the temp manager - concurrently executed unit tests influence each other
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/tempmanager.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/tempmanager.php b/tests/lib/tempmanager.php index 05311e820a7..c030eef2c9e 100644 --- a/tests/lib/tempmanager.php +++ b/tests/lib/tempmanager.php @@ -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) { |