Skip to content

Commit b67322d

Browse files
committed
test: removed unused test
1 parent 9ac63c3 commit b67322d

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

common/rest/request_test.go

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,11 @@ func TestCachedPaginationNextURL(t *testing.T) {
137137
name string
138138
paginationURLs []models.PaginationURL
139139
offset int
140-
limit int
141140
expectedNextURL string
142141
}{
143142
{
144143
name: "return cached next URL",
145144
offset: 200,
146-
limit: 100,
147145
paginationURLs: []models.PaginationURL{
148146
{
149147
NextURL: "/v2/example.com/stuff?limit=100",
@@ -155,7 +153,6 @@ func TestCachedPaginationNextURL(t *testing.T) {
155153
{
156154
name: "return empty string if cache URL cannot be determined",
157155
offset: 40,
158-
limit: 100,
159156
paginationURLs: []models.PaginationURL{
160157
{
161158
NextURL: "/v2/example.com/stuff?limit=100",
@@ -167,22 +164,9 @@ func TestCachedPaginationNextURL(t *testing.T) {
167164
{
168165
name: "return empty string if no cache available",
169166
offset: 40,
170-
limit: 100,
171167
paginationURLs: []models.PaginationURL{},
172168
expectedNextURL: "",
173169
},
174-
{
175-
name: "return empty string if limit in url is different than provided limit",
176-
offset: 200,
177-
limit: 200,
178-
paginationURLs: []models.PaginationURL{
179-
{
180-
NextURL: "/v2/example.com?stuff?limit=100",
181-
LastIndex: 100,
182-
},
183-
},
184-
expectedNextURL: "",
185-
},
186170
}
187171

188172
assert := assert.New(t)

0 commit comments

Comments
 (0)