Skip to content

Commit

Permalink
Fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
joaopalet committed Nov 23, 2023
1 parent 97c58c5 commit 2f3983a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions internal/cmd/dns/record-set/list/list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -355,10 +355,10 @@ func TestFetchRecordSets(t *testing.T) {
description: "limit>totalItems and pageSize<totalItems",
model: fixtureFlagModel(func(model *flagModel) {
model.Limit = utils.Ptr(int64(200))
model.PageSize = 100
model.PageSize = 30
}),
totalItems: 50,
expectedNumAPICalls: 1,
expectedNumAPICalls: 2,
apiCallFails: false,
expectedNumItems: 50,
},
Expand Down
4 changes: 2 additions & 2 deletions internal/cmd/dns/zone/list/list_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,10 +349,10 @@ func TestFetchZones(t *testing.T) {
description: "limit>totalItems and pageSize<totalItems",
model: fixtureFlagModel(func(model *flagModel) {
model.Limit = utils.Ptr(int64(200))
model.PageSize = 100
model.PageSize = 30
}),
totalItems: 50,
expectedNumAPICalls: 1,
expectedNumAPICalls: 2,
apiCallFails: false,
expectedNumItems: 50,
},
Expand Down

0 comments on commit 2f3983a

Please sign in to comment.