File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11from __future__ import annotations
22
3- import datetime
43import time
54
65import pytest
@@ -33,13 +32,13 @@ def wait_for_fee_estimation_service_ready(env):
3332 if _fee_estimation_error :
3433 raise _fee_estimation_error
3534
36- deadline = datetime .datetime .now () + datetime .timedelta (seconds = 600.0 )
3735 attempts = 0
3836 last_error = None
3937
40- print ("Waiting for FeeEstimationService to get ready" )
38+ print ("Waiting for FeeEstimationService to get ready... " )
4139
42- while datetime .datetime .now () < deadline :
40+ deadline = time .monotonic () + 600.0
41+ while time .monotonic () < deadline :
4342 attempts += 1
4443 try :
4544 probe = (
@@ -48,7 +47,7 @@ def wait_for_fee_estimation_service_ready(env):
4847 .add_hbar_transfer (env .operator_id , Hbar (1 ))
4948 )
5049
51- ( FeeEstimateQuery ().set_mode (FeeEstimateMode .INTRINSIC ).set_transaction (probe ).execute (env .client ) )
50+ FeeEstimateQuery ().set_mode (FeeEstimateMode .INTRINSIC ).set_transaction (probe ).execute (env .client )
5251
5352 _fee_estimation_ready = True
5453
You can’t perform that action at this time.
0 commit comments