projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '17566-max-request-size'
[arvados.git]
/
lib
/
controller
/
federation
/
list_test.go
diff --git
a/lib/controller/federation/list_test.go
b/lib/controller/federation/list_test.go
index ce84378a3cbb79d7a4ae894f966bc627bef2b08d..e6d2816f610417e9c980ba539930532da768fc7c 100644
(file)
--- 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 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) {
break
}
if cl.matchFilters(c, options.Filters) {
@@
-115,8
+115,8
@@
func (s *CollectionListSuite) SetUpTest(c *check.C) {
type listTrial struct {
count string
type listTrial struct {
count string
- limit int
- offset int
+ limit int
64
+ offset int
64
order []string
filters []arvados.Filter
selectfields []string
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) {
}
func (s *CollectionListSuite) TestCollectionListMultiSiteWithLimit(c *check.C) {
- for _, limit := range []int{0, 1, 2} {
+ for _, limit := range []int
64
{0, 1, 2} {
s.test(c, listTrial{
count: "none",
limit: limit,
s.test(c, listTrial{
count: "none",
limit: limit,