From b734f3bf24ce612b0946ed7f4cd8f28d6f327478 Mon Sep 17 00:00:00 2001 From: Anna Sholz <0xsholz@gmail.com> Date: Tue, 25 Feb 2025 21:47:50 +0300 Subject: [PATCH] chore: Fixed error in variable name (entris to entries) --- tests/cli_submission_test.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/cli_submission_test.py b/tests/cli_submission_test.py index 3a48907..16f0fc6 100755 --- a/tests/cli_submission_test.py +++ b/tests/cli_submission_test.py @@ -65,11 +65,11 @@ class CliSubmissionTest(TestFramework): wait_until(lambda: client.zgs_get_file_info(root) is not None) wait_until(lambda: client.zgs_get_file_info(root)["finalized"]) - num_of_entris = bytes_to_entries(size) - if num_of_entris > 1: - start_idx = random.randint(0, num_of_entris - 2) + num_of_entries = bytes_to_entries(size) + if num_of_entries > 1: + start_idx = random.randint(0, num_of_entries - 2) end_idx = min( - random.randint(start_idx + 1, num_of_entris - 1), start_idx + ENTRY_SIZE + random.randint(start_idx + 1, num_of_entries - 1), start_idx + ENTRY_SIZE ) assert_equal( @@ -94,9 +94,9 @@ class CliSubmissionTest(TestFramework): wait_until(lambda: self.nodes[i].zgs_get_file_info(root)["finalized"]) - # start_idx = random.randint(0, num_of_entris - 1) + # start_idx = random.randint(0, num_of_entries - 1) # end_idx = min( - # random.randint(start_idx + 1, num_of_entris), start_idx + ENTRY_SIZE + # random.randint(start_idx + 1, num_of_entries), start_idx + ENTRY_SIZE # ) assert_equal(