From c60731774f04d85022324ceb7b8db8e7083853ca Mon Sep 17 00:00:00 2001 From: Karrenbelt Date: Fri, 23 Dec 2022 12:47:42 +0100 Subject: [PATCH] chore: mock sleep --- plugins/aea-cli-ipfs/tests/test_aea_cli_ipfs.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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)