Skip to content

Commit 08ccd90

Browse files
committed
chore: remove node sync
Signed-off-by: Manish Dait <daitmanish88@gmail.com>
1 parent 535b329 commit 08ccd90

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

tests/integration/fee_estimate_query_e2e_test.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@
2121
_fee_estimation_error: Exception | None = None
2222

2323

24-
def wait_for_mirror_node_sync():
25-
"""Create delay to allow the MirrorNode to update its internal state."""
26-
time.sleep(2.0)
27-
28-
2924
def wait_for_fee_estimation_service_ready(env):
3025
"""
3126
Blocks until the Mirror Node's FeeEstimationService is ready.
@@ -78,7 +73,7 @@ def test_can_execute_fee_estimation_query(env):
7873
"""
7974
wait_for_fee_estimation_service_ready(env)
8075
tx = AccountCreateTransaction().set_key_without_alias(PrivateKey.generate_ed25519()).set_initial_balance(1)
81-
wait_for_mirror_node_sync()
76+
# wait_for_mirror_node_sync()
8277
query = FeeEstimateQuery().set_transaction(tx)
8378
result = query.execute(env.client)
8479

@@ -92,7 +87,7 @@ def test_can_execute_fee_estimation_query2(env):
9287
"""
9388
wait_for_fee_estimation_service_ready(env)
9489
tx = AccountCreateTransaction().set_key_without_alias(PrivateKey.generate_ed25519()).set_initial_balance(1)
95-
wait_for_mirror_node_sync()
90+
# wait_for_mirror_node_sync()
9691
query = FeeEstimateQuery().set_mode(FeeEstimateMode.STATE).set_transaction(tx)
9792
result = query.execute(env.client)
9893

@@ -106,7 +101,7 @@ def test__fee_estimation_query_chunk_tx_can_execute(env):
106101
"""
107102
wait_for_fee_estimation_service_ready(env)
108103
tx = FileAppendTransaction().set_file_id(FileId(0, 0, 2)).set_chunk_size(10).set_contents("s" * 33) # 4 chunks
109-
wait_for_mirror_node_sync()
104+
# wait_for_mirror_node_sync()
110105

111106
tx.freeze_with(env.client)
112107
query = FeeEstimateQuery().set_mode(FeeEstimateMode.STATE).set_transaction(tx)
@@ -124,7 +119,7 @@ def test_can_execute_fee_estimation_query_chunk_tx(env):
124119
tx = (
125120
TopicMessageSubmitTransaction().set_topic_id(TopicId(0, 0, 2)).set_chunk_size(10).set_message("s" * 20)
126121
) # 2 chunks
127-
wait_for_mirror_node_sync()
122+
# wait_for_mirror_node_sync()
128123

129124
tx.freeze_with(env.client)
130125
query = FeeEstimateQuery().set_mode(FeeEstimateMode.STATE).set_transaction(tx)

0 commit comments

Comments
 (0)