Open siriuslan opened 4 years ago
I hit problem with test case failed and complaining - exception is connection already closed.
I fix this issue by removing invoking db.close_old_connections() in Servicer's handler() before the try block. Django manages database connection by itself(https://docs.djangoproject.com/en/3.1/ref/databases/#connection-management) and to me it's not necessary to invoke that manually.
I hit problem with test case failed and complaining - exception is connection already closed.
I fix this issue by removing invoking db.close_old_connections() in Servicer's handler() before the try block. Django manages database connection by itself(https://docs.djangoproject.com/en/3.1/ref/databases/#connection-management) and to me it's not necessary to invoke that manually.