-
Notifications
You must be signed in to change notification settings - Fork 94
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 not working in test #67
Comments
Seems like you do not have all tables and/or relations in the first place. Do you have some SQL level log available? |
Hi @kPshi , we've already all tables/ relations in a sql file to be executed. So I don't think its missing in sql file or so. The problem is when we start a fake |
Right, only that error looks like it is raised by the DB server so that something seems to be queried during that first transaction that does not exist. Anyways: talking about that issue gave me one or two ideas of what to dive into. The logs would be great nevertheless. Setting a logger for ozzo should be enough (see LogFunc). |
Failed to reproduce the error. Do you have a minimal buildable example? |
This is my code for DAO testing
I'm trying to seed Postgres DB with ozzo-dbx (since I used it too in my main app).
When I write my tests, I began a transaction and start my own DB operations later for DAO testing.
But as you can see from my comment above, I have to insert a dumb transaction begin to make it works, if not I will get this error:
It's kinda weird for me since everything works fine in my main app but these tests.
Can someone spot any of my mistakes here or is it a potential bug from package?
Thank in advance.
The text was updated successfully, but these errors were encountered: