]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix the filestorage test a bit
authorRobin Appelman <icewind@owncloud.com>
Fri, 2 Mar 2012 23:55:47 +0000 (00:55 +0100)
committerRobin Appelman <icewind@owncloud.com>
Fri, 2 Mar 2012 23:57:52 +0000 (00:57 +0100)
tests/lib/filestorage.php

index f8d4d9c4395d8f8042bc460a4ef50dc44e89bca8..9ffa0eca9cb0e2e7bf9928480429ffb41aac36b7 100644 (file)
@@ -137,7 +137,8 @@ abstract class Test_FileStorage extends UnitTestCase {
                $mTime=$this->instance->filemtime('/lorem.txt');
                $this->assertTrue($ctimeStart<=$cTime);
                $this->assertTrue($cTime<=$ctimeEnd);
-               $this->assertEqual($cTime,$mTime);
+               $this->assertTrue($ctimeStart<=$mTime);
+               $this->assertTrue($mTime<=$ctimeEnd);
                $this->assertEqual(filesize($textFile),$this->instance->filesize('/lorem.txt'));
                
                $stat=$this->instance->stat('/lorem.txt');