disable tracemalloc after test finishes so it doesnt slow down everything else

This commit is contained in:
Victor Shyba 2020-03-16 11:29:16 -03:00
parent d44d5c3304
commit 9561f93594

View file

@ -42,6 +42,7 @@ class SettingsManagement(CommandTestCase):
class TroubleshootingCommands(CommandTestCase):
async def test_tracemalloc_commands(self):
self.addCleanup(self.daemon.jsonrpc_tracemalloc_disable)
self.assertFalse(self.daemon.jsonrpc_tracemalloc_disable())
self.assertTrue(self.daemon.jsonrpc_tracemalloc_enable())