File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -137,13 +137,11 @@ func TestCachedPaginationNextURL(t *testing.T) {
137
137
name string
138
138
paginationURLs []models.PaginationURL
139
139
offset int
140
- limit int
141
140
expectedNextURL string
142
141
}{
143
142
{
144
143
name : "return cached next URL" ,
145
144
offset : 200 ,
146
- limit : 100 ,
147
145
paginationURLs : []models.PaginationURL {
148
146
{
149
147
NextURL : "/v2/example.com/stuff?limit=100" ,
@@ -155,7 +153,6 @@ func TestCachedPaginationNextURL(t *testing.T) {
155
153
{
156
154
name : "return empty string if cache URL cannot be determined" ,
157
155
offset : 40 ,
158
- limit : 100 ,
159
156
paginationURLs : []models.PaginationURL {
160
157
{
161
158
NextURL : "/v2/example.com/stuff?limit=100" ,
@@ -167,22 +164,9 @@ func TestCachedPaginationNextURL(t *testing.T) {
167
164
{
168
165
name : "return empty string if no cache available" ,
169
166
offset : 40 ,
170
- limit : 100 ,
171
167
paginationURLs : []models.PaginationURL {},
172
168
expectedNextURL : "" ,
173
169
},
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
- },
186
170
}
187
171
188
172
assert := assert .New (t )
You can’t perform that action at this time.
0 commit comments