fix TestEndToEnd_MinimalConfig_ValidatorRESTApi test (#11856)

Co-authored-by: Radosław Kapka <rkapka@wp.pl>
This commit is contained in:
Dhruv Bodani 2023-01-10 02:15:37 +05:30 committed by GitHub
parent c89ab764e3
commit a7a64632b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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")
}

View File

@ -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)