Skip to content

Fix timestamp tests #407

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

Closed
wants to merge 1 commit into from
Closed

Conversation

ryansch
Copy link
Contributor

@ryansch ryansch commented May 22, 2015

Until we have a version of rails that uses millisecond precision (>=4.1)
we have to wait an entire second to avoid race conditions.

See https://github.com/elastic/elasticsearch-rails/pull/395/files#diff-beb7964b74f717683049a9437a5570a2R1 for a breakdown on the differences in timestamp precision in different versions of rails.

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
Until we have a version of rails that uses millisecond precision (>=4.1)
we have to wait an entire second to avoid race conditions.
@ryansch
Copy link
Contributor Author

ryansch commented May 22, 2015

@karmi Fixed the failing tests on master. Need to revert your sleep changes.

@karmi karmi closed this in f5162fa May 22, 2015
@karmi
Copy link
Contributor

karmi commented May 22, 2015

Thanks, Ryan!, I guess I got carried away by the one green run when I tweaked your patch and wasn't thinking :)

@ryansch ryansch deleted the fix-timestamp-test branch May 22, 2015 06:06
@ryansch
Copy link
Contributor Author

ryansch commented May 22, 2015

:-)

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