diff --git a/plugins/aea-cli-ipfs/tests/test_aea_cli_ipfs.py b/plugins/aea-cli-ipfs/tests/test_aea_cli_ipfs.py index b57b84d09a..2afd753dad 100644 --- a/plugins/aea-cli-ipfs/tests/test_aea_cli_ipfs.py +++ b/plugins/aea-cli-ipfs/tests/test_aea_cli_ipfs.py @@ -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)