Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions op-service/sources/l1_beacon_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -418,14 +418,14 @@ func TestRequestDuplicateBlobHashes(t *testing.T) {
hashes := []eth.IndexedBlobHash{hash0, hash2, hash1, sameHash} // Mix up the order.
beaconBlobs := []*eth.Blob{&sidecar0.Blob, &sidecar1.Blob, &sidecar2.Blob, &sameHashSidecar.Blob}

invalidBlob0 := sidecar0.Blob
invalidBlob0[10]++

// construct the mock response for the beacon blobs call
beaconBlobsResponse := eth.APIBeaconBlobsResponse{Data: beaconBlobs}
p.EXPECT().BeaconBlobs(ctx, uint64(1), hashes).Return(beaconBlobsResponse, nil)

resp, err := client.GetBlobs(ctx, ref, hashes)
require.NoError(t, err)
for i, blob := range resp {
require.NotNil(t, blob, fmt.Sprintf("blob at index %d should not be nil", i))
}
require.Equal(t, []*eth.Blob{&sidecar0.Blob, &sidecar2.Blob, &sidecar1.Blob, &sameHashSidecar.Blob}, resp)
}