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 assert_in_delta test failure #23521

Merged
merged 1 commit into from Feb 22, 2016

Conversation

kamipo
Copy link
Member

@kamipo kamipo commented Feb 6, 2016

assert_in_delta in timestamp_test.rb causes an intermittent test
failure. It looks like that caused by subseconds truncation in MySQL 5.5.

Example:

  1) Failure:
  TimestampTest#test_touching_many_attributes_updates_them [/home/travis/build/rails/rails/activerecord/test/cases/timestamp_test.rb:125]:
  Expected |2016-02-06 09:22:10 +0000 - 2016-02-06 09:22:09 UTC| (1.000837185) to be <= 1.

https://travis-ci.org/rails/rails/jobs/107415700#L447-L449

@rails-bot
Copy link

r? @matthewd

(@rails-bot has picked a reviewer for you, use r? to override)

`assert_in_delta` in `timestamp_test.rb` causes an intermittent test
failure. It looks like that caused by subseconds truncation in MySQL 5.5.

Example:

```
  1) Failure:
  TimestampTest#test_touching_many_attributes_updates_them [/home/travis/build/rails/rails/activerecord/test/cases/timestamp_test.rb:125]:
  Expected |2016-02-06 09:22:10 +0000 - 2016-02-06 09:22:09 UTC| (1.000837185) to be <= 1.
```
@kamipo
Copy link
Member Author

kamipo commented Feb 22, 2016

r? @senny

@rails-bot rails-bot assigned senny and unassigned matthewd Feb 22, 2016
rafaelfranca added a commit that referenced this pull request Feb 22, 2016
@rafaelfranca rafaelfranca merged commit aa3d440 into rails:master Feb 22, 2016
@kamipo kamipo deleted the fix_assert_in_delta_failure branch February 22, 2016 15:47
kamipo added a commit that referenced this pull request Dec 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants