[Pkg-owncloud-commits] [owncloud] 20/67: fix storage test case

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:10:33 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v4.5.1
in repository owncloud.

commit 7f7c1fcccfc86f2c847d4aa2d62f96fe9ab11794
Author: Robin Appelman <icewind at owncloud.com>
Date:   Thu Oct 11 22:39:20 2012 +0200

    fix storage test case
---
 tests/lib/filestorage.php |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/tests/lib/filestorage.php b/tests/lib/filestorage.php
index 58ac0cd..5a8de30 100644
--- a/tests/lib/filestorage.php
+++ b/tests/lib/filestorage.php
@@ -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));

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list