From ada3d98f6c6696943219e5fabcf30bb0e2c4987e Mon Sep 17 00:00:00 2001 From: Ali Behjati Date: Tue, 17 Sep 2024 17:33:53 +0200 Subject: [PATCH] fix: increase waiting times --- integration-tests/tests/test_integration.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/integration-tests/tests/test_integration.py b/integration-tests/tests/test_integration.py index 241184e..960ec88 100644 --- a/integration-tests/tests/test_integration.py +++ b/integration-tests/tests/test_integration.py @@ -515,11 +515,11 @@ async def test_update_price_simple(self, client: PythAgentClient): # Send an "update_price" request await client.update_price(price_account, 42, 2, "trading") - time.sleep(2) + time.sleep(5) # Send another "update_price" request to trigger aggregation await client.update_price(price_account, 81, 1, "trading") - time.sleep(2) + time.sleep(5) # Confirm that the price account has been updated with the values from the first "update_price" request final_product_state = await client.get_product(product_account) @@ -701,13 +701,13 @@ async def test_agent_respects_market_hours(self, client: PythAgentClient): # Send an "update_price" request await client.update_price(price_account, 42, 2, "trading") - time.sleep(2) + time.sleep(5) # Send another update_price request to "trigger" aggregation # (aggregation would happen if market hours were to fail, but # we want to catch that happening if there's a problem) await client.update_price(price_account, 81, 1, "trading") - time.sleep(2) + time.sleep(5) # Confirm that the price account has not been updated final_product_state = await client.get_product(product_account) @@ -736,13 +736,13 @@ async def test_agent_respects_holiday_hours(self, client: PythAgentClient): # Send an "update_price" request await client.update_price(price_account, 42, 2, "trading") - time.sleep(2) + time.sleep(5) # Send another update_price request to "trigger" aggregation # (aggregation would happen if market hours were to fail, but # we want to catch that happening if there's a problem) await client.update_price(price_account, 81, 1, "trading") - time.sleep(2) + time.sleep(5) # Confirm that the price account has not been updated final_product_state = await client.get_product(product_account) @@ -772,13 +772,13 @@ async def test_agent_respects_publish_interval(self, client: PythAgentClient): # Send an "update_price" request await client.update_price(price_account, 42, 2, "trading") - time.sleep(1) + time.sleep(5) # Send another update_price request to "trigger" aggregation # (aggregation would happen if publish interval were to fail, but # we want to catch that happening if there's a problem) await client.update_price(price_account, 81, 1, "trading") - time.sleep(2) + time.sleep(5) # Confirm that the price account has not been updated final_product_state = await client.get_product(product_account) @@ -792,7 +792,7 @@ async def test_agent_respects_publish_interval(self, client: PythAgentClient): # Send another update_price request to "trigger" aggregation # Now it is after the publish interval, so the price should be updated await client.update_price(price_account, 81, 1, "trading") - time.sleep(2) + time.sleep(5) # Confirm that the price account has been updated final_product_state = await client.get_product(product_account)