Skip to content

Commit c607317

Browse files
committed
chore: mock sleep
1 parent cb15961 commit c607317

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

plugins/aea-cli-ipfs/tests/test_aea_cli_ipfs.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -254,9 +254,10 @@ def test_ipfs_download_failure(self) -> None:
254254
"""Test aea ipfs download failure."""
255255

256256
with self.mock_client_get_failure:
257-
result = self.run_cli(
258-
*self.args, catch_exceptions=True, standalone_mode=False
259-
)
257+
with mock.patch("time.sleep"):
258+
result = self.run_cli(
259+
*self.args, catch_exceptions=True, standalone_mode=False
260+
)
260261

261262
assert result.exit_code == 1, result.stdout
262263
assert isinstance(result.exception, click.ClickException)

0 commit comments

Comments
 (0)