DRF-API-Logger icon indicating copy to clipboard operation
DRF-API-Logger copied to clipboard

Unable to destroy test db after using this library.

Open pawan-betrics opened this issue 2 years ago • 5 comments

Everything was working fine, after install this lib my django test CI failed. Test database is not destroying and raising I am 100% sure, session is used by drf-api-logger.

django.db.utils.OperationalError: database "test_betrics_db" is being accessed by other users DETAIL: There is 1 other session using the database.

pawan-betrics avatar Aug 12 '22 15:08 pawan-betrics

Hi @pawan-betrics, Can you please share some info related to your test cases?

vishalanandl177 avatar Sep 17 '22 19:09 vishalanandl177

`Creating test database for alias 'default'... Found 15 test(s). System check identified no issues (0 silenced). ...............

Ran 15 tests in 9.951s

OK Destroying test database for alias 'default'... DRF API LOGGER EXCEPTION: relation "drf_api_logs" does not exist LINE 1: INSERT INTO "drf_api_logs" ("added_on", "api", "headers", "b...`

I get only this from CI terminal

pawan-betrics avatar Sep 28 '22 12:09 pawan-betrics

Like Why Test cases using drf_api_logs models ?

pawan-betrics avatar Sep 28 '22 12:09 pawan-betrics

Hi @pawan-betrics I have identified the issue, soon It'll be fixed

vishalanandl177 avatar Sep 28 '22 12:09 vishalanandl177

Okay Great

pawan-betrics avatar Sep 28 '22 12:09 pawan-betrics

@vishalanandl177 any follow-up on this issue?

3cp avatar Jan 24 '23 23:01 3cp

Hi @pawan-betrics & @3cp. Thanks for pointing out the issue but I'm not able to replicate the same issue. I tested in EC2 and K8s PODs. Ca you please let me know the scenario and the system arch where you are facing the same issue?

vishalanandl177 avatar Mar 05 '23 16:03 vishalanandl177

Closing due to inactivity.

vishalanandl177 avatar Apr 03 '23 19:04 vishalanandl177