@@ -38,13 +38,13 @@ def wait_for_fee_estimation_service_ready(env):
3838 if _fee_estimation_error :
3939 raise _fee_estimation_error
4040
41- deadline = datetime .now () + datetime .timedelta (seconds = 600.0 )
41+ deadline = datetime .datetime . now () + datetime .timedelta (seconds = 600.0 )
4242 attempts = 0
4343 last_error = None
4444
4545 print ("Waiting for FeeEstimationService to get ready" )
4646
47- while datetime .now () < deadline :
47+ while datetime .datetime . now () < deadline :
4848 attempts += 1
4949 try :
5050 probe = (
@@ -76,7 +76,7 @@ def test_can_execute_fee_estimation_query(env):
7676 """
7777 Integration test that verifies a fee estimation query executes successfully and returns a non-null result.
7878 """
79- wait_for_fee_estimation_service_ready ()
79+ wait_for_fee_estimation_service_ready (env )
8080 tx = AccountCreateTransaction ().set_key_without_alias (PrivateKey .generate_ed25519 ()).set_initial_balance (1 )
8181 wait_for_mirror_node_sync ()
8282 query = FeeEstimateQuery ().set_transaction (tx )
@@ -90,7 +90,7 @@ def test_can_execute_fee_estimation_query2(env):
9090 """Integration test that verifies a state-mode fee estimation query
9191 executes successfully and returns a non-null result.
9292 """
93- wait_for_fee_estimation_service_ready ()
93+ wait_for_fee_estimation_service_ready (env )
9494 tx = AccountCreateTransaction ().set_key_without_alias (PrivateKey .generate_ed25519 ()).set_initial_balance (1 )
9595 wait_for_mirror_node_sync ()
9696 query = FeeEstimateQuery ().set_mode (FeeEstimateMode .STATE ).set_transaction (tx )
@@ -104,7 +104,7 @@ def test__fee_estimation_query_chunk_tx_can_execute(env):
104104 """Integration test that verifies a state-mode fee estimation query executes
105105 successfully for a chunked file append transaction and returns a non-null result.
106106 """
107- wait_for_fee_estimation_service_ready ()
107+ wait_for_fee_estimation_service_ready (env )
108108 tx = FileAppendTransaction ().set_file_id (FileId (0 , 0 , 2 )).set_chunk_size (10 ).set_contents ("s" * 33 ) # 4 chunks
109109 wait_for_mirror_node_sync ()
110110
@@ -120,7 +120,7 @@ def test_can_execute_fee_estimation_query_chunk_tx(env):
120120 """Integration test that verifies a state-mode fee estimation query executes successfully
121121 for a chunked topic message submit transaction and returns a non-null result.
122122 """
123- wait_for_fee_estimation_service_ready ()
123+ wait_for_fee_estimation_service_ready (env )
124124 tx = (
125125 TopicMessageSubmitTransaction ().set_topic_id (TopicId (0 , 0 , 2 )).set_chunk_size (10 ).set_message ("s" * 20 )
126126 ) # 2 chunks
0 commit comments