Skip to content

Commit

Permalink
chore(metrics): Add /tls/ws in protocol stack tests
Browse files Browse the repository at this point in the history
Pull-Request: libp2p#5540.
  • Loading branch information
oblique authored Aug 8, 2024
1 parent 848e2e9 commit 7b2a77e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions misc/metrics/src/protocol_stack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,11 @@ mod tests {
let protocol_stack = as_string(&ma);

assert_eq!(protocol_stack, "/ip6/tcp/wss/p2p");

let ma = Multiaddr::try_from("/ip6/2001:8a0:7ac5:4201:3ac9:86ff:fe31:7095/tcp/8000/tls/ws/p2p/QmcgpsyWgH8Y8ajJz1Cu72KnS5uo2Aa2LpzU7kinSupNKC").expect("testbad");

let protocol_stack = as_string(&ma);

assert_eq!(protocol_stack, "/ip6/tcp/tls/ws/p2p");
}
}

0 comments on commit 7b2a77e

Please sign in to comment.