Skip to content

Commit

Permalink
fix: Fix MarketHistory test (blockscout#11547)
Browse files Browse the repository at this point in the history
  • Loading branch information
vbaranov authored and gabmontes committed Jan 3, 2025
1 parent 11eed9c commit ba672cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/explorer/test/explorer/market/history/cataloger_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ defmodule Explorer.Market.History.CatalogerTest do
use Explorer.DataCase, async: false

import Mox
import Ecto.Query, only: [order_by: 2]
import Ecto.Query, only: [limit: 2, order_by: 2]

alias Explorer.Market.MarketHistory
alias Explorer.Market.History.Cataloger
Expand Down Expand Up @@ -222,7 +222,7 @@ defmodule Explorer.Market.History.CatalogerTest do
%Explorer.Market.MarketHistory{
date: ~D[2018-04-02]
} = second_entry
] = MarketHistory |> order_by(asc: :date) |> Repo.all()
] = MarketHistory |> order_by(asc: :date) |> limit(2) |> Repo.all()

assert Decimal.eq?(first_entry.closing_price, Decimal.new(10))
assert Decimal.eq?(second_entry.closing_price, Decimal.new(20))
Expand Down

0 comments on commit ba672cf

Please sign in to comment.