From 4dc6fb8d3c89a8ad794274cb09bc81f3a7bca06b Mon Sep 17 00:00:00 2001 From: Peter Jung Date: Mon, 21 Oct 2024 10:41:18 +0200 Subject: [PATCH] Fetch newest markets in tests to have enough of time to process them (#516) --- tests_integration_with_local_chain/markets/omen/test_omen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests_integration_with_local_chain/markets/omen/test_omen.py b/tests_integration_with_local_chain/markets/omen/test_omen.py index ce5dc7fb..757d75df 100644 --- a/tests_integration_with_local_chain/markets/omen/test_omen.py +++ b/tests_integration_with_local_chain/markets/omen/test_omen.py @@ -270,7 +270,7 @@ def test_omen_fund_and_remove_fund_market( OmenSubgraphHandler().get_omen_binary_markets_simple( limit=1, filter_by=FilterBy.OPEN, - sort_by=SortBy.CLOSING_SOONEST, + sort_by=SortBy.NEWEST, collateral_token_address_in=(collateral_token_address,), )[0] ) @@ -488,7 +488,7 @@ def test_place_bet_with_prev_existing_positions( # Fetch an open binary market. sh = OmenSubgraphHandler() market = sh.get_omen_binary_markets_simple( - limit=1, filter_by=FilterBy.OPEN, sort_by=SortBy.CLOSING_SOONEST + limit=1, filter_by=FilterBy.OPEN, sort_by=SortBy.NEWEST )[0] omen_agent_market = OmenAgentMarket.from_data_model(market)