@@ -515,11 +515,11 @@ async def test_update_price_simple(self, client: PythAgentClient):
515
515
516
516
# Send an "update_price" request
517
517
await client .update_price (price_account , 42 , 2 , "trading" )
518
- time .sleep (2 )
518
+ time .sleep (5 )
519
519
520
520
# Send another "update_price" request to trigger aggregation
521
521
await client .update_price (price_account , 81 , 1 , "trading" )
522
- time .sleep (2 )
522
+ time .sleep (5 )
523
523
524
524
# Confirm that the price account has been updated with the values from the first "update_price" request
525
525
final_product_state = await client .get_product (product_account )
@@ -701,13 +701,13 @@ async def test_agent_respects_market_hours(self, client: PythAgentClient):
701
701
702
702
# Send an "update_price" request
703
703
await client .update_price (price_account , 42 , 2 , "trading" )
704
- time .sleep (2 )
704
+ time .sleep (5 )
705
705
706
706
# Send another update_price request to "trigger" aggregation
707
707
# (aggregation would happen if market hours were to fail, but
708
708
# we want to catch that happening if there's a problem)
709
709
await client .update_price (price_account , 81 , 1 , "trading" )
710
- time .sleep (2 )
710
+ time .sleep (5 )
711
711
712
712
# Confirm that the price account has not been updated
713
713
final_product_state = await client .get_product (product_account )
@@ -736,13 +736,13 @@ async def test_agent_respects_holiday_hours(self, client: PythAgentClient):
736
736
737
737
# Send an "update_price" request
738
738
await client .update_price (price_account , 42 , 2 , "trading" )
739
- time .sleep (2 )
739
+ time .sleep (5 )
740
740
741
741
# Send another update_price request to "trigger" aggregation
742
742
# (aggregation would happen if market hours were to fail, but
743
743
# we want to catch that happening if there's a problem)
744
744
await client .update_price (price_account , 81 , 1 , "trading" )
745
- time .sleep (2 )
745
+ time .sleep (5 )
746
746
747
747
# Confirm that the price account has not been updated
748
748
final_product_state = await client .get_product (product_account )
@@ -772,13 +772,13 @@ async def test_agent_respects_publish_interval(self, client: PythAgentClient):
772
772
773
773
# Send an "update_price" request
774
774
await client .update_price (price_account , 42 , 2 , "trading" )
775
- time .sleep (1 )
775
+ time .sleep (5 )
776
776
777
777
# Send another update_price request to "trigger" aggregation
778
778
# (aggregation would happen if publish interval were to fail, but
779
779
# we want to catch that happening if there's a problem)
780
780
await client .update_price (price_account , 81 , 1 , "trading" )
781
- time .sleep (2 )
781
+ time .sleep (5 )
782
782
783
783
# Confirm that the price account has not been updated
784
784
final_product_state = await client .get_product (product_account )
@@ -792,7 +792,7 @@ async def test_agent_respects_publish_interval(self, client: PythAgentClient):
792
792
# Send another update_price request to "trigger" aggregation
793
793
# Now it is after the publish interval, so the price should be updated
794
794
await client .update_price (price_account , 81 , 1 , "trading" )
795
- time .sleep (2 )
795
+ time .sleep (5 )
796
796
797
797
# Confirm that the price account has been updated
798
798
final_product_state = await client .get_product (product_account )
0 commit comments