test against server versions down to 4.6

This commit is contained in:
Robin Appelman 2022-01-25 14:31:20 +01:00
commit 5f707cba13
2 changed files with 7 additions and 4 deletions

View file

@ -72,7 +72,9 @@ class NotifyHandlerTest extends TestCase {
usleep(1000 * 100);// give it some time to start listening
$share->put(__FILE__, 'source.txt');
usleep(1000 * 10);
$share->rename('source.txt', 'target.txt');
usleep(1000 * 10);
$share->del('target.txt');
usleep(1000 * 100);// give it some time
@ -89,7 +91,7 @@ class NotifyHandlerTest extends TestCase {
$process->stop();
$changes = $this->filterModifiedChanges($changes);
$this->assertCount(4, $changes);
$this->assertCount(4, $changes, "Expected 4 changes got: " . print_r($changes, true));
if ($changes[1]->getCode() === INotifyHandler::NOTIFY_REMOVED) {
// sometimes during testing, the move isn't properly recognized with older smb versions, retry a few times
usleep(1000 * 100);