Skip to content

Commit

Permalink
Merge pull request #496 from woylie/add-limit-to-test
Browse files Browse the repository at this point in the history
add limit to test
  • Loading branch information
woylie authored Sep 11, 2024
2 parents 98ea952 + 1d103d0 commit 0bdfeb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/adapters/ecto/cases/flop_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -1071,7 +1071,7 @@ defmodule Flop.Adapters.Ecto.FlopTest do
|> Enum.sort_by(&{&1.name, &1.species, &1.age})
|> Enum.slice(4..10)

flop = %Flop{offset: 4, order_by: [:name, :species, :age]}
flop = %Flop{limit: 100, offset: 4, order_by: [:name, :species, :age]}
query = Flop.query(Pet, flop)
assert %QueryExpr{params: [{4, :integer}]} = query.offset
assert Repo.all(query) == expected_pets
Expand Down

0 comments on commit 0bdfeb9

Please sign in to comment.