From 0e30a0dd013532b897c0488ff342f4b81979aa07 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 22 Jan 2018 17:08:24 +0100 Subject: [PATCH] increase the time we wait for smb notifications in the test Signed-off-by: Robin Appelman --- apps/files_external/tests/Storage/SmbTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/files_external/tests/Storage/SmbTest.php b/apps/files_external/tests/Storage/SmbTest.php index 037c4cd4d39..6d781290734 100644 --- a/apps/files_external/tests/Storage/SmbTest.php +++ b/apps/files_external/tests/Storage/SmbTest.php @@ -95,11 +95,11 @@ class SmbTest extends \Test\Files\Storage\Storage { public function testNotifyGetChanges() { $notifyHandler = $this->instance->notify(''); - usleep(100 * 1000); //give time for the notify to start + sleep(1); //give time for the notify to start $this->instance->file_put_contents('/newfile.txt', 'test content'); $this->instance->rename('/newfile.txt', 'renamed.txt'); $this->instance->unlink('/renamed.txt'); - usleep(100 * 1000); //time for all changes to be processed + sleep(1); //time for all changes to be processed $changes = $notifyHandler->getChanges(); $notifyHandler->stop();