Skip to content

Commit

Permalink
test: removed unused test
Browse files Browse the repository at this point in the history
  • Loading branch information
Aerex committed Nov 16, 2023
1 parent 9ac63c3 commit b67322d
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions common/rest/request_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,11 @@ func TestCachedPaginationNextURL(t *testing.T) {
name string
paginationURLs []models.PaginationURL
offset int
limit int
expectedNextURL string
}{
{
name: "return cached next URL",
offset: 200,
limit: 100,
paginationURLs: []models.PaginationURL{
{
NextURL: "/v2/example.com/stuff?limit=100",
Expand All @@ -155,7 +153,6 @@ func TestCachedPaginationNextURL(t *testing.T) {
{
name: "return empty string if cache URL cannot be determined",
offset: 40,
limit: 100,
paginationURLs: []models.PaginationURL{
{
NextURL: "/v2/example.com/stuff?limit=100",
Expand All @@ -167,22 +164,9 @@ func TestCachedPaginationNextURL(t *testing.T) {
{
name: "return empty string if no cache available",
offset: 40,
limit: 100,
paginationURLs: []models.PaginationURL{},
expectedNextURL: "",
},
{
name: "return empty string if limit in url is different than provided limit",
offset: 200,
limit: 200,
paginationURLs: []models.PaginationURL{
{
NextURL: "/v2/example.com?stuff?limit=100",
LastIndex: 100,
},
},
expectedNextURL: "",
},
}

assert := assert.New(t)
Expand Down

0 comments on commit b67322d

Please sign in to comment.