summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristian Berendt <berendt@b1-systems.de>2013-07-08 15:03:55 +0200
committerChristian Berendt <berendt@b1-systems.de>2013-07-08 15:03:55 +0200
commit8c9e6db1b10c8dac559d3eaec0952e9b733dc7fe (patch)
treefaad72a481c8eb8f96f5b9ad462903717fb2fc8c /tests
parentfdeb21ba5babc1df653a23a4147bd8558797b522 (diff)
downloadnextcloud-server-8c9e6db1b10c8dac559d3eaec0952e9b733dc7fe.tar.gz
nextcloud-server-8c9e6db1b10c8dac559d3eaec0952e9b733dc7fe.zip
increasing allowed time difference
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/files/storage/storage.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/lib/files/storage/storage.php b/tests/lib/files/storage/storage.php
index 155a99d8bab..fbf502fbc1c 100644
--- a/tests/lib/files/storage/storage.php
+++ b/tests/lib/files/storage/storage.php
@@ -168,10 +168,10 @@ abstract class Storage extends \PHPUnit_Framework_TestCase {
$this->assertTrue($this->instance->isReadable('/lorem.txt'));
$ctimeEnd = time();
$mTime = $this->instance->filemtime('/lorem.txt');
- $this->assertTrue($this->instance->hasUpdated('/lorem.txt', $ctimeStart - 3));
- $this->assertTrue($this->instance->hasUpdated('/', $ctimeStart - 3));
+ $this->assertTrue($this->instance->hasUpdated('/lorem.txt', $ctimeStart - 5));
+ $this->assertTrue($this->instance->hasUpdated('/', $ctimeStart - 5));
- $this->assertTrue(($ctimeStart - 3) <= $mTime);
+ $this->assertTrue(($ctimeStart - 5) <= $mTime);
$this->assertTrue($mTime <= ($ctimeEnd + 1));
$this->assertEquals(filesize($textFile), $this->instance->filesize('/lorem.txt'));
@@ -185,10 +185,10 @@ abstract class Storage extends \PHPUnit_Framework_TestCase {
$mtimeEnd = time();
if ($supportsTouch !== false) {
$mTime = $this->instance->filemtime('/lorem.txt');
- $this->assertTrue(($mtimeStart - 3) <= $mTime);
- $this->assertTrue($mTime <= ($mtimeEnd + 3));
+ $this->assertTrue(($mtimeStart - 5) <= $mTime);
+ $this->assertTrue($mTime <= ($mtimeEnd + 5));
- $this->assertTrue($this->instance->hasUpdated('/lorem.txt', $mtimeStart - 3));
+ $this->assertTrue($this->instance->hasUpdated('/lorem.txt', $mtimeStart - 5));
if ($this->instance->touch('/lorem.txt', 100) !== false) {
$mTime = $this->instance->filemtime('/lorem.txt');
@@ -203,11 +203,11 @@ abstract class Storage extends \PHPUnit_Framework_TestCase {
clearstatcache();
$mtimeEnd = time();
$mTime = $this->instance->filemtime('/lorem.txt');
- $this->assertTrue(($mtimeStart - 3) <= $mTime);
- $this->assertTrue($mTime <= ($mtimeEnd + 3));
+ $this->assertTrue(($mtimeStart - 5) <= $mTime);
+ $this->assertTrue($mTime <= ($mtimeEnd + 5));
$this->instance->unlink('/lorem.txt');
- $this->assertTrue($this->instance->hasUpdated('/', $mtimeStart - 3));
+ $this->assertTrue($this->instance->hasUpdated('/', $mtimeStart - 5));
}
public function testSearch() {