Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BasicsTest#test_preserving_time_objects_with_time_with_zone_conversion_to_default_timezone_local fails #35194

Closed
yahonda opened this issue Feb 8, 2019 · 0 comments
Assignees

Comments

@yahonda
Copy link
Member

yahonda commented Feb 8, 2019

Reproduced CI failure at Rails master branch. https://travis-ci.org/rails/rails/jobs/490356258#L1043-L1052

Steps to reproduce

$ cd activerecord
$ ARCONN=mysql2 bin/test test/cases/serialized_attribute_test.rb test/cases/attribute_methods_test.rb test/cases/base_test.rb -n "/^(?:SerializedAttributeTest#(?:test_serialize_does_not_eagerly_load_columns)|AttributeMethodsTest#(?:test_YAML_dumping_a_record_with_time_zone-aware_attribute)|BasicsTest#(?:test_preserving_time_objects_with_time_with_zone_conversion_to_default_timezone_local))$/" --seed 17411

Expected behavior

It should pass.

Actual behavior

$ ARCONN=mysql2 bin/test test/cases/serialized_attribute_test.rb test/cases/attribute_methods_test.rb test/cases/base_test.rb -n "/^(?:SerializedAttributeTest#(?:test_serialize_does_not_eagerly_load_columns)|AttributeMethodsTest#(?:test_YAML_dumping_a_record_with_time_zone-aware_attribute)|BasicsTest#(?:test_preserving_time_objects_with_time_with_zone_conversion_to_default_timezone_local))$/" --seed 17411
Using mysql2
Run options: -n "/^(?:SerializedAttributeTest#(?:test_serialize_does_not_eagerly_load_columns)|AttributeMethodsTest#(?:test_YAML_dumping_a_record_with_time_zone-aware_attribute)|BasicsTest#(?:test_preserving_time_objects_with_time_with_zone_conversion_to_default_timezone_local))$/" --seed 17411

# Running:

..F

Failure:
BasicsTest#test_preserving_time_objects_with_time_with_zone_conversion_to_default_timezone_local [/home/yahonda/git/rails/activerecord/test/cases/base_test.rb:256]:
--- expected
+++ actual
@@ -1 +1 @@
-[0, 0, 1, 1, 1, 2000, 6, 1, false, "EST"]
+[0, 0, 0, 1, 1, 2000, 6, 1, false, "CST"]



bin/test test/cases/base_test.rb:247



Finished in 0.435559s, 6.8877 runs/s, 11.4795 assertions/s.
3 runs, 5 assertions, 1 failures, 0 errors, 0 skips
$

System configuration

Rails version:master branch

Ruby version:
ruby 2.6.1p33 (2019-01-30 revision 66950) [x86_64-linux]

  • MySQL version
$ mysql --version
mysql  Ver 8.0.15 for Linux on x86_64 (MySQL Community Server - GPL)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants