Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenghaoz committed Dec 21, 2024
1 parent 2803c4a commit 1b71f0b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions master/rest_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -515,10 +515,10 @@ func TestServer_SearchDocumentsOfItems(t *testing.T) {
operators := []ListOperator{
{"Item Neighbors", cache.ItemNeighbors, "0", "", "/api/dashboard/item/0/neighbors"},
{"Item Neighbors in Category", cache.ItemNeighbors, "0", "*", "/api/dashboard/item/0/neighbors/*"},
{"Latest Items", cache.NonPersonalized, cache.Latest, "", "/api/non-personalized/latest/"},
{"Popular Items", cache.NonPersonalized, cache.Popular, "", "/api/non-personalized/popular/"},
{"Latest Items in Category", cache.NonPersonalized, cache.Latest, "*", "/api/non-personalized/latest/"},
{"Popular Items in Category", cache.NonPersonalized, cache.Popular, "*", "/api/non-personalized/popular/"},
{"Latest Items", cache.NonPersonalized, cache.Latest, "", "/api/dashboard/non-personalized/latest/"},
{"Popular Items", cache.NonPersonalized, cache.Popular, "", "/api/dashboard/non-personalized/popular/"},
{"Latest Items in Category", cache.NonPersonalized, cache.Latest, "*", "/api/dashboard/non-personalized/latest/"},
{"Popular Items in Category", cache.NonPersonalized, cache.Popular, "*", "/api/dashboard/non-personalized/popular/"},
}
for i, operator := range operators {
t.Run(operator.Name, func(t *testing.T) {
Expand Down

0 comments on commit 1b71f0b

Please sign in to comment.