Skip to content

Commit

Permalink
Add test for comma separated query param indices
Browse files Browse the repository at this point in the history
  • Loading branch information
bitwiseguy committed May 15, 2024
1 parent 824e1a6 commit 3d7b48f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions api/service/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,14 @@ func TestAPIService(t *testing.T) {
Data: blockTwo.BlobSidecars.Data,
},
},
{
name: "multi indices comma separated list",
path: "/eth/v1/beacon/blob_sidecars/1234?indices=0,1",
status: 200,
expected: &storage.BlobSidecars{
Data: blockTwo.BlobSidecars.Data,
},
},
{
name: "only index out of bounds returns empty array",
path: "/eth/v1/beacon/blob_sidecars/1234?indices=3",
Expand Down

0 comments on commit 3d7b48f

Please sign in to comment.