Skip to content

Commit

Permalink
Fix failing tests by 1 second difference
Browse files Browse the repository at this point in the history
  • Loading branch information
ceeram committed Dec 5, 2011
1 parent e4e26a8 commit 09a623e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Cake/Test/Case/Utility/FileTest.php
Expand Up @@ -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();
}
Expand Down

0 comments on commit 09a623e

Please sign in to comment.