From 5ed2bcb22471d086cac24ee2af976bd8db0d6926 Mon Sep 17 00:00:00 2001 From: Rob Cannon Date: Thu, 28 Nov 2024 20:27:46 +0700 Subject: [PATCH] chore: add retry on flakey test --- requirements-dev.txt | 1 + tests/integration/utils/test_rpc.py | 1 + 2 files changed, 2 insertions(+) diff --git a/requirements-dev.txt b/requirements-dev.txt index ffbacbf..efed2ab 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -2,6 +2,7 @@ pytest pytest-mock pytest-cov pytest-order +pytest-retry pytest-asyncio httpx grpcio-tools==1.40.0 diff --git a/tests/integration/utils/test_rpc.py b/tests/integration/utils/test_rpc.py index 28f3db4..4570994 100644 --- a/tests/integration/utils/test_rpc.py +++ b/tests/integration/utils/test_rpc.py @@ -100,6 +100,7 @@ def test_getIISSInfo(): assert output +@pytest.mark.flaky(delay=1, retries=3) def test_getIISSInfo_networks(tmp_set_settings): with tmp_set_settings("ICON_NODE_URL", "https://api.berlin.icon.community/api/v3"): output = getIISSInfo(height=1)