Skip to content

Commit

Permalink
fix: fix failing unit test because it can now accept a StackerDBHands…
Browse files Browse the repository at this point in the history
…hakeAccept
  • Loading branch information
jcnelson committed Jan 27, 2023
1 parent c5f0adb commit 9fb35ff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/net/chat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3901,7 +3901,8 @@ mod test {

// received a valid HandshakeAccept from peer 2
match reply_handshake_1.payload {
StacksMessageType::HandshakeAccept(ref data) => {
StacksMessageType::HandshakeAccept(ref data)
| StacksMessageType::StackerDBHandshakeAccept(ref data, ..) => {
assert_eq!(data.handshake.addrbytes, local_peer_2.addrbytes);
assert_eq!(data.handshake.port, local_peer_2.port);
assert_eq!(data.handshake.services, local_peer_2.services);
Expand Down Expand Up @@ -4242,7 +4243,8 @@ mod test {

// received a valid HandshakeAccept from peer 2
match reply_1.payload {
StacksMessageType::HandshakeAccept(ref data) => {
StacksMessageType::HandshakeAccept(ref data)
| StacksMessageType::StackerDBHandshakeAccept(ref data, ..) => {
assert_eq!(data.handshake.addrbytes, local_peer_2.addrbytes);
assert_eq!(data.handshake.port, local_peer_2.port);
assert_eq!(data.handshake.services, local_peer_2.services);
Expand Down

0 comments on commit 9fb35ff

Please sign in to comment.