Skip to content

Commit

Permalink
Fix a flaky call to get_event_loop
Browse files Browse the repository at this point in the history
  • Loading branch information
mariano54 committed May 20, 2022
1 parent 765deaf commit 01a000f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/block_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -2057,8 +2057,8 @@ def create_block_tools(
print(f" create_block_tools called {create_block_tools_count} times")
bt = BlockTools(constants, root_path, const_dict, keychain, config_overrides=config_overrides)

asyncio.get_event_loop().run_until_complete(bt.setup_keys())
asyncio.get_event_loop().run_until_complete(bt.setup_plots())
asyncio.run(bt.setup_keys())
asyncio.run(bt.setup_plots())

return bt

Expand Down

0 comments on commit 01a000f

Please sign in to comment.