From 67c8901863992d035517812d8208d3d927303edc Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Fri, 20 May 2022 09:33:23 +0200 Subject: [PATCH] fixup! Read exactly 11 bytes --- muxers/mplex/tests/two_peers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); });