Skip to content

Commit 3b51ab0

Browse files
committed
galley-integration: Change assertions about pagination
Because sometimes we don't have to get an empty page to realize we're at the end
1 parent eef622b commit 3b51ab0

File tree

1 file changed

+2
-2
lines changed
  • services/galley/test/integration

1 file changed

+2
-2
lines changed

services/galley/test/integration/API.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1648,7 +1648,7 @@ paginateConvListIds = do
16481648
-- 1 Proteus self conv + 1 MLS self conv + 2 convs with bob and eve + 196
16491649
-- local convs + 25 convs on chad.example.com + 31 on dee.example = 256 convs.
16501650
-- Getting them 16 at a time should get all them in 16 times.
1651-
foldM_ (getChunkedConvs 16 0 alice) Nothing [16, 15 .. 0 :: Int]
1651+
foldM_ (getChunkedConvs 16 16 alice) Nothing [15, 14 .. 0 :: Int]
16521652

16531653
-- This test ensures to setup conversations so that a page would end exactly
16541654
-- when local convs are exhausted and then exactly when another remote domain's
@@ -1710,7 +1710,7 @@ paginateConvListIdsPageEndingAtLocalsAndDomain = do
17101710
}
17111711
void $ runFedClient @"on-conversation-updated" fedGalleyClient deeDomain cu
17121712

1713-
foldM_ (getChunkedConvs 16 0 alice) Nothing [4, 3, 2, 1, 0 :: Int]
1713+
foldM_ (getChunkedConvs 16 16 alice) Nothing [3, 2, 1, 0 :: Int]
17141714

17151715
-- | Gets chunked conversation ids given size of each chunk, size of the last
17161716
-- chunk, requesting user and @n@ which represents how many chunks are remaining

0 commit comments

Comments
 (0)