From b7f0091e0fe598dad4e97288d037094494034e8b Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Thu, 14 Mar 2019 13:34:17 +0100 Subject: [PATCH] Add time between SMB test runs and properly log full changeset Signed-off-by: Morris Jobke --- apps/files_external/tests/Storage/SmbTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/files_external/tests/Storage/SmbTest.php b/apps/files_external/tests/Storage/SmbTest.php index 562ac6c8e5..609b362d60 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 } }