Permalink
Browse files

Fix flaky test. SimpleTest is the worst.

  • Loading branch information...
1 parent c66fe39 commit fcc0aa40db6125db044aa20d16e7d59048213e89 @markstory markstory committed Oct 22, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/tests/cases/libs/model/datasources/dbo/dbo_postgres.test.php
@@ -830,7 +830,7 @@ function testVirtualFieldAsAConstant() {
$result = $Article->find('first');
$this->assertNull($result['Article']['empty']);
$this->assertTrue($result['Article']['truth']);
- $this->assertEqual(42, $result['Article']['number']);
+ $this->assertIdentical('43', $result['Article']['number']);
@lorenzo
lorenzo Oct 22, 2011 CakePHP member

WTF??? it is indeed the worst

@markstory
markstory Oct 22, 2011 CakePHP member

Yeah assertEqual(42, '43') passes. Pretty ridiculous, I'm glad we're done with SimpleTest.

}
/**

0 comments on commit fcc0aa4

Please sign in to comment.