Merge pull request #7994 from nextcloud/smb-notify-test-timeout

increase the time we wait for smb notifications in the test
This commit is contained in:
Roeland Jago Douma 2018-01-22 19:54:00 +01:00 committed by GitHub
commit 97aff2dbe0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -96,11 +96,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();