Skip to content

Commit

Permalink
Merge pull request #23 from bitwiseguy/ss/add-test-multi-indices
Browse files Browse the repository at this point in the history
Add test for comma separated query param indices
  • Loading branch information
danyalprout authored May 15, 2024
2 parents 824e1a6 + 3d7b48f commit 39cf8e7
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 39cf8e7

Please sign in to comment.