diff --git a/muxers/mplex/tests/two_peers.rs b/muxers/mplex/tests/two_peers.rs index b4d23f2eaf5..a45af23e74d 100644 --- a/muxers/mplex/tests/two_peers.rs +++ b/muxers/mplex/tests/two_peers.rs @@ -209,7 +209,7 @@ fn protocol_not_match() { .unwrap(); let mut buf = vec![0u8; 11]; - inbound.read_exact(&mut buf).await.unwrap(); + outbound.read_exact(&mut buf).await.unwrap(); assert_eq!(buf, b"hello world"); });