Skip to content
Snippets Groups Projects
Unverified Commit 80aef8ed authored by Robin Appelman's avatar Robin Appelman
Browse files

increase the time we wait for smb notifications in the test


Signed-off-by: default avatarRobin Appelman <robin@icewind.nl>
parent 34a3613a
No related branches found
No related tags found
No related merge requests found
...@@ -96,11 +96,11 @@ class SmbTest extends \Test\Files\Storage\Storage { ...@@ -96,11 +96,11 @@ class SmbTest extends \Test\Files\Storage\Storage {
public function testNotifyGetChanges() { public function testNotifyGetChanges() {
$notifyHandler = $this->instance->notify(''); $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->file_put_contents('/newfile.txt', 'test content');
$this->instance->rename('/newfile.txt', 'renamed.txt'); $this->instance->rename('/newfile.txt', 'renamed.txt');
$this->instance->unlink('/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(); $changes = $notifyHandler->getChanges();
$notifyHandler->stop(); $notifyHandler->stop();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment