From e8c89e1729c163b0ef57704ea2806a3607725aae Mon Sep 17 00:00:00 2001 From: Alexander Cristurean Date: Mon, 4 Nov 2024 18:10:52 +0200 Subject: [PATCH] clean remaining commented code. --- .github/workflows/test-localnet-tests.yml | 4 --- .../tests/test_cli_validators.py | 29 ------------------- 2 files changed, 33 deletions(-) diff --git a/.github/workflows/test-localnet-tests.yml b/.github/workflows/test-localnet-tests.yml index b3a8ba37..630ef7cb 100644 --- a/.github/workflows/test-localnet-tests.yml +++ b/.github/workflows/test-localnet-tests.yml @@ -47,10 +47,6 @@ jobs: python3 -m multiversx_sdk_cli.cli localnet clean --configfile=./multiversx_sdk_cli/tests/testdata/localnet_with_resolution_remote.toml python3 -m multiversx_sdk_cli.cli localnet config --configfile=./multiversx_sdk_cli/tests/testdata/localnet_with_resolution_remote.toml nohup python3 -m multiversx_sdk_cli.cli localnet start --configfile=./multiversx_sdk_cli/tests/testdata/localnet_with_resolution_remote.toml > localnet.log 2>&1 & echo $! > localnet.pid - cd localnet - cd validator00 - ls - pwd sleep 120 - name: Test localnet dependent tests diff --git a/multiversx_sdk_cli/tests/test_cli_validators.py b/multiversx_sdk_cli/tests/test_cli_validators.py index 0891ef56..3f5d6402 100644 --- a/multiversx_sdk_cli/tests/test_cli_validators.py +++ b/multiversx_sdk_cli/tests/test_cli_validators.py @@ -15,35 +15,6 @@ bls_key = "e7beaa95b3877f47348df4dd1cb578a4f7cabf7a20bfeefe5cdd263878ff132b765e04fef6f40c93512b666c47ed7719b8902f6c922c04247989b7137e837cc81a62e54712471c97a2ddab75aa9c2f58f813ed4c0fa722bde0ab718bff382208" -# @pytest.fixture() -# def poll_endpoint(): -# start_time = time.time() # Record the start time -# timeout = 600 -# interval = 1 -# -# while True: -# try: -# # Make the request to the endpoint -# response = requests.get(proxy_url, timeout=5) # Add request timeout to prevent blocking indefinitely -# if response.status_code == 200: -# # Break out of the loop if we get a successful response -# return response.json() # Return the response (or .text, .content based on your needs) -# else: -# print(f"Received non-200 status code: {response.status_code}") -# -# except requests.RequestException as e: -# # Handle network exceptions or timeouts -# print(f"Request failed: {e}") -# -# # Check if the timeout is reached -# if time.time() - start_time > timeout: -# print("Polling timed out") -# break -# -# # Wait for the specified interval before sending the next request -# time.sleep(interval) - - @pytest.mark.require_localnet def test_stake(): validators_json = testdata_path / "validators_ci.json"