Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jianoaix committed Jan 15, 2025
1 parent 742f1ed commit 1b62334
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions disperser/dataapi/v2/server_v2_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -472,10 +472,10 @@ func TestFetchBlobFeedHandler(t *testing.T) {
w = executeRequest(t, r, http.MethodGet, reqUrl)
response = decodeResponseBody[serverv2.BlobFeedResponse](t, w)
require.Equal(t, 60, len(response.Blobs))
// for i := 0; i < 60; i++ {
// checkBlobKeyEqual(t, keys[41+i], response.Blobs[i].BlobHeader)
// assert.Equal(t, requestedAt[41+i], response.Blobs[i].RequestedAt)
// }
for i := 0; i < 60; i++ {
checkBlobKeyEqual(t, keys[41+i], response.Blobs[i].BlobHeader)
assert.Equal(t, requestedAt[41+i], response.Blobs[i].RequestedAt)
}
assert.True(t, len(response.PaginationToken) > 0)
checkPaginationToken(t, response.PaginationToken, requestedAt[100], keys[100])
})
Expand All @@ -484,7 +484,7 @@ func TestFetchBlobFeedHandler(t *testing.T) {
// Querying the blobs in the past hour, with limit=20
// It should return keys[43], ..., keys[62].
tm := time.Unix(0, time.Now().UnixNano()).UTC()
endTime := tm.Format("2006-01-02T15:04:05.999999999Z")
endTime := tm.Format("2006-01-02T15:04:05.999999999Z") // nano precision format
reqUrl := fmt.Sprintf("/v2/blobs/feed?end=%s&limit=20", endTime)
w := executeRequest(t, r, http.MethodGet, reqUrl)
response := decodeResponseBody[serverv2.BlobFeedResponse](t, w)
Expand Down

0 comments on commit 1b62334

Please sign in to comment.