You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running integresql and pg via docker compose. I've initialized my db template and run migrations, all good so far.
Now that I have a template hash, I run my unit test (simple insert)
GetTestDatabase
Insert single entry in one of the tables
ReturnTestDatabase
Now when I run the same test again, the database is not clean. Its seems the database is not properly destroyed when returned?
Am I supposed to use transactions to keep the databases clean? Or manually truncate tables.
Any help would be appreciated.
The text was updated successfully, but these errors were encountered:
I have also stumbled across the same problem. I was expecting the database to be cleaned and then send back to the pool.
No problem doing this by ourselves, however the documentation was misleading.
I'm running integresql and pg via docker compose. I've initialized my db template and run migrations, all good so far.
Now that I have a template hash, I run my unit test (simple insert)
Now when I run the same test again, the database is not clean. Its seems the database is not properly destroyed when returned?
Am I supposed to use transactions to keep the databases clean? Or manually truncate tables.
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: