File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -451,13 +451,17 @@ public function test_find_by_pk_should_not_use_limit()
451
451
452
452
public function test_find_by_datetime ()
453
453
{
454
+ if ( getenv ('TRAVIS ' ) ) $ this ->markTestSkipped (
455
+ 'The Travis CI environment seems to screw this up for unknonwn reasons; ' .
456
+ 'see Github #298 (https://github.com/kla/php-activerecord/issues/298) '
457
+ );
458
+
454
459
$ now = new DateTime ();
455
460
$ arnow = new ActiveRecord \DateTime ();
456
461
$ arnow ->setTimestamp ($ now ->getTimestamp ());
457
462
458
463
Author::find (1 )->update_attribute ('created_at ' ,$ now );
459
- // Hard to debug problem, see Github #298...
460
- //$this->assert_not_null(Author::find_by_created_at($now));
464
+ $ this ->assert_not_null (Author::find_by_created_at ($ now ));
461
465
$ this ->assert_not_null (Author::find_by_created_at ($ arnow ));
462
466
}
463
467
};
You can’t perform that action at this time.
0 commit comments