mirror of
https://github.com/status-im/consul.git
synced 2025-01-09 13:26:07 +00:00
Properly assert for ServerAddresses replication request
This commit is contained in:
parent
d1d9dbff8e
commit
ec36755cc0
@ -1395,6 +1395,17 @@ func makeClient(t *testing.T, srv *testServer, peerID string) *MockClient {
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
Payload: &pbpeerstream.ReplicationMessage_Request_{
|
||||
Request: &pbpeerstream.ReplicationMessage_Request{
|
||||
ResourceURL: pbpeerstream.TypeURLPeeringServerAddresses,
|
||||
// The PeerID field is only set for the messages coming FROM
|
||||
// the establishing side and are going to be empty from the
|
||||
// other side.
|
||||
PeerID: "",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
got := []*pbpeerstream.ReplicationMessage{
|
||||
receivedSub1,
|
||||
|
Loading…
x
Reference in New Issue
Block a user