Closed ktnr closed 3 years ago
Hey @ktnr ,
Thanks for the issue and for the feedback!
Please post the code of your test here, or you may just create a PR for that.
At the moment, not having seen your code, It seems like some of the objects from config may have been left in the memory.
Regards, Leonid
After writing a simple first test for adding a user to the database, I get a memory leak. Specifically when calling
UserService::createUser()
, I get the following. But it occurs for every interaction with the database, even a simpleSELECT
.It even occurs when there is no interaction with the database, as long as
DatabaseComponent
is instantiated in the tests:. But with one less leaked object:E |2020-12-27 16:31:22 1609083082386201| MyTag:FINISHED - failed, leakingObjects = 3
This probably requires a fix in oatpp-sqlite. Unfortunately, I couldn't narrow it down more.
Other than that, works like a charm. Great work on all fronts!