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

Fix test_counter_cache_with_touch_and_lock_version failure #31919

Conversation

bogdanvlviv
Copy link
Contributor

@@ -415,14 +415,16 @@ def test_counter_cache_with_touch_and_lock_version
assert_equal 1, car.lock_version

previously_car_updated_at = car.updated_at
car.wheels.first.update(size: 42)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The failure is due to datetime rounding, but daf15f5 didn't fix that.
that is caused by this line, so we need to address this line only.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@bogdanvlviv bogdanvlviv force-pushed the fix-test_counter_cache_with_touch_and_lock_version branch from 18e3b04 to 4444294 Compare February 7, 2018 21:23
@kamipo kamipo merged commit 0613533 into rails:master Feb 9, 2018
@bogdanvlviv bogdanvlviv deleted the fix-test_counter_cache_with_touch_and_lock_version branch February 9, 2018 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants