X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/fa9a17bf1ea10d9130188730a1aa160e89daaa13..3fa0a5500d5b58b5d0b9ea940dac85be2da079ec:/lib/controller/federation/list_test.go diff --git a/lib/controller/federation/list_test.go b/lib/controller/federation/list_test.go index ce84378a3c..e6d2816f61 100644 --- a/lib/controller/federation/list_test.go +++ b/lib/controller/federation/list_test.go @@ -58,7 +58,7 @@ func (cl *collectionLister) CollectionList(ctx context.Context, options arvados. if cl.MaxPageSize > 0 && len(resp.Items) >= cl.MaxPageSize { break } - if options.Limit >= 0 && len(resp.Items) >= options.Limit { + if options.Limit >= 0 && int64(len(resp.Items)) >= options.Limit { break } if cl.matchFilters(c, options.Filters) { @@ -115,8 +115,8 @@ func (s *CollectionListSuite) SetUpTest(c *check.C) { type listTrial struct { count string - limit int - offset int + limit int64 + offset int64 order []string filters []arvados.Filter selectfields []string @@ -314,7 +314,7 @@ func (s *CollectionListSuite) TestCollectionListMultiSiteWithCount(c *check.C) { } func (s *CollectionListSuite) TestCollectionListMultiSiteWithLimit(c *check.C) { - for _, limit := range []int{0, 1, 2} { + for _, limit := range []int64{0, 1, 2} { s.test(c, listTrial{ count: "none", limit: limit,