-
Notifications
You must be signed in to change notification settings - Fork 486
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
FAIL: Tests that the revision is abandoned on error. on MySQL #18
Comments
Could you check something for me? What table engine are you using for your different databases. Are they both on InnoDB, or is one on MyISSAM? |
They are supposed to be both on InnoDB. I recheck my settings (directly and via the django shell, to be sure they are loaded correctly) and everything seem fine. I have |
Okay, I really can't reproduce this. If you can find some means of differentiating between your two setups, I'll investigate further. Until then, I'm chalking it up to some weird bug in a MySQL release, and marking it as WorksForMe |
I did more tests and things get a bit weird. Firstly, I ran the tests in a virtual server (VirtualBox) that's an exact copy of the production server (Ubuntu 10.04 64bit, etc. I did the installation on both, the virtual and the production by running the same script). So they are really similar on the software side. But I don't have the problem on the virtual server but keep getting it on the production one? Secondly, I saw this warning (not a traceback) that I didn't remark the other time (but I'm pretty sure it was there):
Weird, if I'm not wrong, that's the error that the
But it's not clear to me what's the problem and what's the difference between my 2 setup that trigger 2 different behaviors. If you have any idea, tell me. |
Okay, I've updated the unit test so that this inconsistency isn't a problem. Very weird though. More and more, I'm convinced that database abstraction layers in general are more trouble then they're worth. |
I have a strange error. When I run the tests on my development environnement (OS X, MySQL) this test doesn't fail. But when I run the tests on my production server (Linux Ubuntu 10.04, MySQL) this test fail. The rollback doesn't seem to work?
FAIL: Tests that the revision is abandoned on error.
Traceback (most recent call last):
File "/home/mmac/virtualenvs/staging/src/django-reversion/src/reversion/tests.py", line 109, in testRevisionAbandonedOnError
self.assertEqual(Version.objects.get_for_object(test).count(), 1)
AssertionError: 2 != 1
The text was updated successfully, but these errors were encountered: