]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix storage test case
authorRobin Appelman <icewind@owncloud.com>
Thu, 11 Oct 2012 20:39:20 +0000 (22:39 +0200)
committerRobin Appelman <icewind@owncloud.com>
Thu, 11 Oct 2012 20:39:50 +0000 (22:39 +0200)
tests/lib/filestorage.php

index 9c6e3f6b8c137afb60ade4d19805de0fd58f97ac..e82a6f54e3d2773c1efe3183ad466adc0ea3970f 100644 (file)
@@ -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));