mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-23 11:57:18 +00:00
fix TestEndToEnd_MinimalConfig_ValidatorRESTApi
test (#11856)
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
This commit is contained in:
parent
c89ab764e3
commit
a7a64632b1
@ -22,7 +22,7 @@ func (c *beaconApiValidatorClient) submitSyncMessage(ctx context.Context, syncMe
|
||||
Signature: hexutil.Encode(syncMessage.Signature),
|
||||
}
|
||||
|
||||
marshalledJsonSyncCommitteeMessage, err := json.Marshal(jsonSyncCommitteeMessage)
|
||||
marshalledJsonSyncCommitteeMessage, err := json.Marshal([]*apimiddleware.SyncCommitteeMessageJson{jsonSyncCommitteeMessage})
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "failed to marshal sync committee message")
|
||||
}
|
||||
|
@ -38,7 +38,7 @@ func TestSubmitSyncMessage_Valid(t *testing.T) {
|
||||
Signature: signature,
|
||||
}
|
||||
|
||||
marshalledJsonRegistrations, err := json.Marshal(jsonSyncCommitteeMessage)
|
||||
marshalledJsonRegistrations, err := json.Marshal([]*apimiddleware.SyncCommitteeMessageJson{jsonSyncCommitteeMessage})
|
||||
require.NoError(t, err)
|
||||
|
||||
jsonRestHandler := mock.NewMockjsonRestHandler(ctrl)
|
||||
|
Loading…
Reference in New Issue
Block a user