summaryrefslogtreecommitdiffstats
path: root/apps/files_external/tests/Storage/SmbTest.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2019-03-14 13:34:17 +0100
committerMorris Jobke <hey@morrisjobke.de>2019-03-14 16:43:19 +0100
commit06c80c77c2b1a3efcd10366d06cbc192c87dec8d (patch)
treed648475dbe967abf6ac40ba6506df7aa6686452c /apps/files_external/tests/Storage/SmbTest.php
parent7e48b4ebb24ba23d4e41380e010f7aef0659d5c9 (diff)
downloadnextcloud-server-06c80c77c2b1a3efcd10366d06cbc192c87dec8d.tar.gz
nextcloud-server-06c80c77c2b1a3efcd10366d06cbc192c87dec8d.zip
Add time between SMB test runs and properly log full changeset
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/files_external/tests/Storage/SmbTest.php')
-rw-r--r--apps/files_external/tests/Storage/SmbTest.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files_external/tests/Storage/SmbTest.php b/apps/files_external/tests/Storage/SmbTest.php
index 562ac6c8e5e..609b362d60d 100644
--- a/apps/files_external/tests/Storage/SmbTest.php
+++ b/apps/files_external/tests/Storage/SmbTest.php
@@ -98,7 +98,9 @@ class SmbTest extends \Test\Files\Storage\Storage {
$notifyHandler = $this->instance->notify('');
sleep(1); //give time for the notify to start
$this->instance->file_put_contents('/newfile.txt', 'test content');
+ sleep(1);
$this->instance->rename('/newfile.txt', 'renamed.txt');
+ sleep(1);
$this->instance->unlink('/renamed.txt');
sleep(1); //time for all changes to be processed
@@ -119,7 +121,7 @@ class SmbTest extends \Test\Files\Storage\Storage {
];
foreach ($expected as $expectedChange) {
- $this->assertContains($expectedChange, $changes, '', false, false); // dont check object identity
+ $this->assertContains($expectedChange, $changes, 'Actual changes are:' . PHP_EOL . print_r($expected, true), false, false); // dont check object identity
}
}