Skip to content

Commit

Permalink
fix pr comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Siddharth More authored and Siddharth More committed May 8, 2024
1 parent 99c05b0 commit bde7ab2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion disperser/dataapi/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ func (s *server) Start() error {
{
feed.GET("/blobs", s.FetchBlobsHandler)
feed.GET("/blobs/:blob_key", s.FetchBlobHandler)
feed.GET("/blobs/:accountId", s.FetchBlobCountByAccountIdHandler)
feed.GET("/blobs/count/:accountId", s.FetchBlobCountByAccountIdHandler)
}
operatorsInfo := v1.Group("/operators-info")
{
Expand Down
8 changes: 4 additions & 4 deletions disperser/dataapi/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,10 @@ func TestFetchBlobCountByAccountIdHandler(t *testing.T) {
// mark Blob confirmed with accountId test1
markBlobConfirmed(t, &blob, key, expectedBatchHeaderHash, "test1", blobstore)
accountId := "test1"
r.GET("/v1/feed/blobs/:accountId", testDataApiServer.FetchBlobCountByAccountIdHandler)
r.GET("/v1/feed/blobs/count/:accountId", testDataApiServer.FetchBlobCountByAccountIdHandler)

w := httptest.NewRecorder()
req := httptest.NewRequest(http.MethodGet, "/v1/feed/blobs/"+accountId, nil)
req := httptest.NewRequest(http.MethodGet, "/v1/feed/blobs/count/"+accountId, nil)
r.ServeHTTP(w, req)

res := w.Result()
Expand Down Expand Up @@ -288,10 +288,10 @@ func TestFetchBlobCountByAccountIdInvalidHandler(t *testing.T) {
// BlobAccountId is "test"
// Search by AccountId test1
accountId := "test3"
r.GET("/v1/feed/blobs/:accountId", testDataApiServer.FetchBlobCountByAccountIdHandler)
r.GET("/v1/feed/blobs/count/:accountId", testDataApiServer.FetchBlobCountByAccountIdHandler)

w := httptest.NewRecorder()
req := httptest.NewRequest(http.MethodGet, "/v1/feed/blobs/"+accountId, nil)
req := httptest.NewRequest(http.MethodGet, "/v1/feed/blobs/count/"+accountId, nil)
r.ServeHTTP(w, req)

res := w.Result()
Expand Down

0 comments on commit bde7ab2

Please sign in to comment.