Skip to content

Commit 3d7b48f

Browse files
committed
Add test for comma separated query param indices
1 parent 824e1a6 commit 3d7b48f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

api/service/api_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,14 @@ func TestAPIService(t *testing.T) {
180180
Data: blockTwo.BlobSidecars.Data,
181181
},
182182
},
183+
{
184+
name: "multi indices comma separated list",
185+
path: "/eth/v1/beacon/blob_sidecars/1234?indices=0,1",
186+
status: 200,
187+
expected: &storage.BlobSidecars{
188+
Data: blockTwo.BlobSidecars.Data,
189+
},
190+
},
183191
{
184192
name: "only index out of bounds returns empty array",
185193
path: "/eth/v1/beacon/blob_sidecars/1234?indices=3",

0 commit comments

Comments
 (0)