Skip to content

Commit ada3d98

Browse files
committed
fix: increase waiting times
1 parent 0a96456 commit ada3d98

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

integration-tests/tests/test_integration.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -515,11 +515,11 @@ async def test_update_price_simple(self, client: PythAgentClient):
515515

516516
# Send an "update_price" request
517517
await client.update_price(price_account, 42, 2, "trading")
518-
time.sleep(2)
518+
time.sleep(5)
519519

520520
# Send another "update_price" request to trigger aggregation
521521
await client.update_price(price_account, 81, 1, "trading")
522-
time.sleep(2)
522+
time.sleep(5)
523523

524524
# Confirm that the price account has been updated with the values from the first "update_price" request
525525
final_product_state = await client.get_product(product_account)
@@ -701,13 +701,13 @@ async def test_agent_respects_market_hours(self, client: PythAgentClient):
701701

702702
# Send an "update_price" request
703703
await client.update_price(price_account, 42, 2, "trading")
704-
time.sleep(2)
704+
time.sleep(5)
705705

706706
# Send another update_price request to "trigger" aggregation
707707
# (aggregation would happen if market hours were to fail, but
708708
# we want to catch that happening if there's a problem)
709709
await client.update_price(price_account, 81, 1, "trading")
710-
time.sleep(2)
710+
time.sleep(5)
711711

712712
# Confirm that the price account has not been updated
713713
final_product_state = await client.get_product(product_account)
@@ -736,13 +736,13 @@ async def test_agent_respects_holiday_hours(self, client: PythAgentClient):
736736

737737
# Send an "update_price" request
738738
await client.update_price(price_account, 42, 2, "trading")
739-
time.sleep(2)
739+
time.sleep(5)
740740

741741
# Send another update_price request to "trigger" aggregation
742742
# (aggregation would happen if market hours were to fail, but
743743
# we want to catch that happening if there's a problem)
744744
await client.update_price(price_account, 81, 1, "trading")
745-
time.sleep(2)
745+
time.sleep(5)
746746

747747
# Confirm that the price account has not been updated
748748
final_product_state = await client.get_product(product_account)
@@ -772,13 +772,13 @@ async def test_agent_respects_publish_interval(self, client: PythAgentClient):
772772

773773
# Send an "update_price" request
774774
await client.update_price(price_account, 42, 2, "trading")
775-
time.sleep(1)
775+
time.sleep(5)
776776

777777
# Send another update_price request to "trigger" aggregation
778778
# (aggregation would happen if publish interval were to fail, but
779779
# we want to catch that happening if there's a problem)
780780
await client.update_price(price_account, 81, 1, "trading")
781-
time.sleep(2)
781+
time.sleep(5)
782782

783783
# Confirm that the price account has not been updated
784784
final_product_state = await client.get_product(product_account)
@@ -792,7 +792,7 @@ async def test_agent_respects_publish_interval(self, client: PythAgentClient):
792792
# Send another update_price request to "trigger" aggregation
793793
# Now it is after the publish interval, so the price should be updated
794794
await client.update_price(price_account, 81, 1, "trading")
795-
time.sleep(2)
795+
time.sleep(5)
796796

797797
# Confirm that the price account has been updated
798798
final_product_state = await client.get_product(product_account)

0 commit comments

Comments
 (0)