Skip to content

Commit

Permalink
FAB-14700 Kafka2Raft validate broadcast fix
Browse files Browse the repository at this point in the history
Fix compilation error in commit 2d924d0.

Change-Id: I0eefdaed6598097b35fdb352b6408b63a7a31685
Signed-off-by: Yoav Tock <tock@il.ibm.com>
  • Loading branch information
tock-ibm committed Mar 26, 2019
1 parent 0b14342 commit 15bf213
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions orderer/consensus/migration/migration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -458,8 +458,8 @@ func TestStepStdFromCommit(t *testing.T) {
})
}

func prepareRaftMetadata() *protosraft.Metadata {
raftMetadata := &protosraft.Metadata{
func prepareRaftMetadata() *protosraft.ConfigMetadata {
raftMetadata := &protosraft.ConfigMetadata{
Consenters: []*protosraft.Consenter{
{
ClientTlsCert: []byte{1, 2, 3, 4},
Expand All @@ -469,12 +469,11 @@ func prepareRaftMetadata() *protosraft.Metadata {
},
},
Options: &protosraft.Options{
TickInterval: "500ms",
ElectionTick: 10,
HeartbeatTick: 1,
MaxInflightMsgs: 256,
MaxSizePerMsg: 1048576,
SnapshotInterval: 8388608,
TickInterval: "500ms",
ElectionTick: 10,
HeartbeatTick: 1,
MaxInflightBlocks: 256,
SnapshotIntervalSize: 8388608,
}}

return raftMetadata
Expand All @@ -483,7 +482,7 @@ func prepareRaftMetadata() *protosraft.Metadata {
func prepareRaftMetadataBytes(t *testing.T) []byte {
raftMetadata := prepareRaftMetadata()
raftMetadataBytes := protoutil.MarshalOrPanic(raftMetadata)
raftMetadata2 := &protosraft.Metadata{}
raftMetadata2 := &protosraft.ConfigMetadata{}
errUnma := proto.Unmarshal(raftMetadataBytes, raftMetadata2)
assert.NoError(t, errUnma)

Expand Down

0 comments on commit 15bf213

Please sign in to comment.