Skip to content

Commit

Permalink
limit amount of generated test data
Browse files Browse the repository at this point in the history
  • Loading branch information
woylie committed Oct 14, 2020
1 parent 4843c07 commit 7fa4c31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/flop_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ defmodule FlopTest do

describe "cursor paging" do
property "querying cursor by cursor forward includes all items in order" do
check all pets <- nonempty(uniq_list_of(pet_generator())),
check all pets <- uniq_list_of(pet_generator(), length: 1..100),
cursor_fields = Enum.shuffle([:age, :name, :species]),
cursor_fields <- constant(cursor_fields),
directions <- list_of(member_of(@directions), length: 3) do
Expand Down Expand Up @@ -855,7 +855,7 @@ defmodule FlopTest do
end

property "querying all items returns same list forward and backward" do
check all pets <- nonempty(uniq_list_of(pet_generator())),
check all pets <- uniq_list_of(pet_generator(), length: 1..100),
cursor_fields = Enum.shuffle([:age, :name, :species]),
cursor_fields <- constant(cursor_fields),
directions <- list_of(member_of(@directions), length: 3) do
Expand Down Expand Up @@ -885,7 +885,7 @@ defmodule FlopTest do
end

property "querying cursor by cursor backward includes all items in order" do
check all pets <- nonempty(uniq_list_of(pet_generator())),
check all pets <- uniq_list_of(pet_generator(), length: 1..100),
cursor_fields = Enum.shuffle([:age, :name, :species]),
cursor_fields <- constant(cursor_fields),
directions <- list_of(member_of(@directions), length: 3) do
Expand Down

0 comments on commit 7fa4c31

Please sign in to comment.