From 7b2a77e066a39fc052178bd4362792e6b63822ef Mon Sep 17 00:00:00 2001 From: Yiannis Marangos Date: Thu, 8 Aug 2024 17:36:25 +0300 Subject: [PATCH] chore(metrics): Add `/tls/ws` in protocol stack tests Pull-Request: #5540. --- misc/metrics/src/protocol_stack.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/misc/metrics/src/protocol_stack.rs b/misc/metrics/src/protocol_stack.rs index 59e8c0bfa6a..57760df79a1 100644 --- a/misc/metrics/src/protocol_stack.rs +++ b/misc/metrics/src/protocol_stack.rs @@ -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"); } }