Browse files

Fix failing tests by 1 second difference

  • Loading branch information...
1 parent e4e26a8 commit 09a623e07b7aa5ebfbd8d14374209c87c7874b97 @ceeram ceeram committed Dec 5, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/Cake/Test/Case/Utility/FileTest.php
View
3 lib/Cake/Test/Case/Utility/FileTest.php
@@ -309,10 +309,11 @@ public function testExecutable() {
* @return void
*/
public function testLastAccess() {
+ $ts = time();
$someFile = new File(TMP . 'some_file.txt', false);
$this->assertFalse($someFile->lastAccess());
$this->assertTrue($someFile->open());
- $this->assertEquals($someFile->lastAccess(), time());
+ $this->assertTrue($someFile->lastAccess() >= $ts);
$someFile->close();
$someFile->delete();
}

0 comments on commit 09a623e

Please sign in to comment.