Skip to content

Commit

Permalink
Fetch newest markets in tests to have enough of time to process them (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kongzii authored Oct 21, 2024
1 parent b6d794e commit 4dc6fb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests_integration_with_local_chain/markets/omen/test_omen.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
)
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit 4dc6fb8

Please sign in to comment.