Skip to content

Commit 7b2a77e

Browse files
authored
chore(metrics): Add /tls/ws in protocol stack tests
Pull-Request: #5540.
1 parent 848e2e9 commit 7b2a77e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

misc/metrics/src/protocol_stack.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,11 @@ mod tests {
2323
let protocol_stack = as_string(&ma);
2424

2525
assert_eq!(protocol_stack, "/ip6/tcp/wss/p2p");
26+
27+
let ma = Multiaddr::try_from("/ip6/2001:8a0:7ac5:4201:3ac9:86ff:fe31:7095/tcp/8000/tls/ws/p2p/QmcgpsyWgH8Y8ajJz1Cu72KnS5uo2Aa2LpzU7kinSupNKC").expect("testbad");
28+
29+
let protocol_stack = as_string(&ma);
30+
31+
assert_eq!(protocol_stack, "/ip6/tcp/tls/ws/p2p");
2632
}
2733
}

0 commit comments

Comments
 (0)