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

fix storage test case

parent 87d4aaf2
No related branches found
No related tags found
No related merge requests found
......@@ -173,11 +173,9 @@ abstract class Test_FileStorage extends UnitTestCase {
$supportsTouch = $this->instance->touch('/lorem.txt');
$mtimeEnd = time();
if ($supportsTouch !== false) {
$originalCTime = $cTime;
$mTime = $this->instance->filemtime('/lorem.txt');
$this->assertTrue(($mtimeStart - 1) <= $mTime);
$this->assertTrue($mTime <= ($mtimeEnd + 1));
$this->assertEqual($cTime, $originalCTime);
$this->assertTrue($this->instance->hasUpdated('/lorem.txt', $mtimeStart - 1));
......@@ -193,7 +191,6 @@ abstract class Test_FileStorage extends UnitTestCase {
fclose($fh);
clearstatcache();
$mtimeEnd = time();
$originalCTime = $cTime;
$mTime = $this->instance->filemtime('/lorem.txt');
$this->assertTrue(($mtimeStart - 1) <= $mTime);
$this->assertTrue($mTime <= ($mtimeEnd + 1));
......
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