Skip to content

Commit 788c1b6

Browse files
committed
Updated transport protocol tests
1 parent bd02305 commit 788c1b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/tests/transport_upgrade.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ async fn upgrade_pipeline() {
123123
};
124124

125125
let client = async move {
126-
let ((peer, _mplex), _port_use) = dialer_transport
126+
let ((peer, _mplex), port_use) = dialer_transport
127127
.dial(
128128
listen_addr2,
129129
DialOpts {
@@ -135,6 +135,7 @@ async fn upgrade_pipeline() {
135135
.await
136136
.unwrap();
137137
assert_eq!(peer, listener_id);
138+
assert_eq!(port_use, PortUse::New);
138139
};
139140

140141
tokio::spawn(server);

0 commit comments

Comments
 (0)