]> source.dussan.org Git - nextcloud-server.git/commitdiff
increase the time we wait for smb notifications in the test
authorRobin Appelman <robin@icewind.nl>
Mon, 22 Jan 2018 16:08:24 +0000 (17:08 +0100)
committerMorris Jobke <hey@morrisjobke.de>
Tue, 23 Jan 2018 08:55:02 +0000 (09:55 +0100)
Signed-off-by: Robin Appelman <robin@icewind.nl>
apps/files_external/tests/Storage/SmbTest.php

index 037c4cd4d39dd0c2552430b699e29104d6497b12..6d78129073415163979f5c5c679861d780e7d041 100644 (file)
@@ -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();