Skip to content

Commit

Permalink
fix agent tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTechromancer committed Sep 25, 2023
1 parent 1d92059 commit 20edb21
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bbot/test/test_step_1/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ async def test_cli(monkeypatch, bbot_config):
task = asyncio.create_task(cli._main())
await asyncio.sleep(2)
task.cancel()
await task
try:
await task
except asyncio.CancelledError:
pass

# no args
monkeypatch.setattr("sys.argv", ["bbot"])
Expand Down

0 comments on commit 20edb21

Please sign in to comment.