-
Notifications
You must be signed in to change notification settings - Fork 483
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
Transaction is not closed in Rails 4 #198
Comments
What version are you using? Try the release candidate if you haven't already. |
gem 'rails', '~> 4.0.0.beta1' I updated the gem revision 2 hours ago, I thought the last commit about the connection had already solved the issue, but it didn't. |
I think this is actually a rails issue as I was experiencing it without db cleaner. |
Do you know if there is already an issue there? |
Just for googlers to save some hours of debugging: We had a similar database deadlock problem together with Capybara/Poltergeist.
switching to ordinary before/after fixed our deadlock in our feature specs. |
@zealot128 your solution does not work for me, as I then run into #273 |
I believe this is still and issue and should be reopened. I had issue #273 as well and was able to hack a solution by rolling back open transactions before deleting or truncating my tables This should be taken care of in the |
Here is my conf:
Here is the test log:
As you can see in the log, after it truncates, it opens a new transaction to insert, but then it is not closed. The test holds there.
The text was updated successfully, but these errors were encountered: