File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -451,13 +451,17 @@ public function test_find_by_pk_should_not_use_limit()
451451
452452 public function test_find_by_datetime ()
453453 {
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+
454459 $ now = new DateTime ();
455460 $ arnow = new ActiveRecord \DateTime ();
456461 $ arnow ->setTimestamp ($ now ->getTimestamp ());
457462
458463 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 ));
461465 $ this ->assert_not_null (Author::find_by_created_at ($ arnow ));
462466 }
463467};
You can’t perform that action at this time.
0 commit comments