Skip to content

Commit 1fdfb93

Browse files
authored
Assert we get PATH_ACK stats (#98)
2 parents 6b4bd5e + cc9ae7a commit 1fdfb93

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

quinn-proto/src/tests/multipath.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,16 @@ fn multipath_pair() -> (Pair, ConnectionHandle, ConnectionHandle) {
9191
(pair, client_ch, server_ch)
9292
}
9393

94+
#[test]
95+
fn path_acks() {
96+
let _guard = subscribe();
97+
let (mut pair, client_ch, _server_ch) = multipath_pair();
98+
99+
let client_conn = pair.client_conn_mut(client_ch);
100+
assert!(client_conn.stats().frame_rx.path_acks > 0);
101+
assert!(client_conn.stats().frame_tx.path_acks > 0);
102+
}
103+
94104
#[test]
95105
fn path_status() {
96106
let _guard = subscribe();

0 commit comments

Comments
 (0)