-
Notifications
You must be signed in to change notification settings - Fork 29
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
Find "leaking" items in test execution #53
Comments
Maybe we can purge the entire mailbox, even remove it entirely in global tear-down and create a new one in global set-up? |
Well, OTOH, each individual test case should clean-up after itself. Can you figure out which test case does leave everything around and why? |
Will do and update when I know more. Wouldn't this have a high impact on the test performance? |
Why? All test cases clean-up in TearDown() methods already. And test execution is still okay, absolutely bearable, IMO. |
Since it's only tests it won't be too bad I suppose. The contacts and tasks that are created are the ones that remain on the server. I'll check out how I can clean them up with tear_down() |
Thank you. Keep in mind to search for the test cases that create these items first. The items should be removed by the TearDown() method of the individual test case or using a Removing or cleaning-up the entire mailbox in a global tear-down should be done only when all else has failed. |
As it is now, the items created on the server by the tests remain there and fill up the storage.
tear_down() should clean that up, which it only does with resources acquired by curl_global_init, by calling curl_global_cleanup().
The text was updated successfully, but these errors were encountered: