Failing test in ActiveRecord #1096

Closed
guilleiguaran opened this Issue May 17, 2011 · 5 comments

Projects

None yet

2 participants

@guilleiguaran
Member

I'm getting a failure when run AR tests:

1) Failure:
test_preserves_existing_fixture_data(FoxyFixturesTest) [test/cases/fixtures_test.rb:598]:
<Tue, 03 May 2011> expected but was
<Mon, 02 May 2011>.

The strange thing is that this test only fails a little after midnight (I reproduced it today at 1am and last weekend at 2am) and works ok all the rest of the day, it must be related to timezone.

I will try to research and post more details here.

@dmathieu
Contributor

Yes, that's because of time zones. I think if both times were using #utc, it'd fix the problem.

@guilleiguaran
Member

Closed in favour of #1494

@guilleiguaran guilleiguaran reopened this Jul 23, 2011
@guilleiguaran
Member

Still happening, looks like the commit referenced in #1494 was reverted

@dmathieu
Contributor

This commit is not the appropriate solution. That's why it was reverted.
I know @joshk has something drafted.

@guilleiguaran
Member

Closing in favour of #2427

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment