File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,8 @@ async def setup_full_node(
105
105
) -> AsyncGenerator [Service [FullNode ], None ]:
106
106
db_path = local_bt .root_path / f"{ db_name } "
107
107
if db_path .exists ():
108
+ # TODO: remove (maybe) when fixed https://github.com/python/cpython/issues/97641
109
+ gc .collect ()
108
110
db_path .unlink ()
109
111
110
112
if db_version > 1 :
@@ -200,6 +202,8 @@ async def setup_wallet_node(
200
202
db_path = local_bt .root_path / db_path_replaced
201
203
202
204
if db_path .exists ():
205
+ # TODO: remove (maybe) when fixed https://github.com/python/cpython/issues/97641
206
+ gc .collect ()
203
207
db_path .unlink ()
204
208
service_config ["database_path" ] = str (db_name )
205
209
service_config ["testing" ] = True
@@ -233,6 +237,8 @@ async def setup_wallet_node(
233
237
service .stop ()
234
238
await service .wait_closed ()
235
239
if db_path .exists ():
240
+ # TODO: remove (maybe) when fixed https://github.com/python/cpython/issues/97641
241
+ gc .collect ()
236
242
db_path .unlink ()
237
243
keychain .delete_all_keys ()
238
244
You can’t perform that action at this time.
0 commit comments