Skip to content

Commit

Permalink
chore: mock sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
Karrenbelt committed Dec 23, 2022
1 parent cb15961 commit c607317
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions plugins/aea-cli-ipfs/tests/test_aea_cli_ipfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,10 @@ def test_ipfs_download_failure(self) -> None:
"""Test aea ipfs download failure."""

with self.mock_client_get_failure:
result = self.run_cli(
*self.args, catch_exceptions=True, standalone_mode=False
)
with mock.patch("time.sleep"):
result = self.run_cli(
*self.args, catch_exceptions=True, standalone_mode=False
)

assert result.exit_code == 1, result.stdout
assert isinstance(result.exception, click.ClickException)
Expand Down

0 comments on commit c607317

Please sign in to comment.