From 69e3db02d8e57fdfaf59646b96168f993160d4e8 Mon Sep 17 00:00:00 2001 From: Dennis Schwerdel Date: Fri, 20 Nov 2015 18:31:57 +0100 Subject: [PATCH] Fixed tests --- src/udpmessage.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/udpmessage.rs b/src/udpmessage.rs index 3c9e009..f4ed343 100644 --- a/src/udpmessage.rs +++ b/src/udpmessage.rs @@ -217,8 +217,8 @@ fn encode_option_network_id() { let msg = Message::GetPeers; let mut buf = [0; 1024]; let size = encode(&options, &msg, &mut buf[..]); - assert_eq!(size, 18); - assert_eq!(&buf[..size], &[118,112,110,0,0,0,1,2,0,8,0,0,0,0,0,0,0,134]); + assert_eq!(size, 16); + assert_eq!(&buf[..size], &[118,112,110,0,0,0,1,2,0,0,0,0,0,0,0,134]); let (options2, msg2) = decode(&buf[..size]).unwrap(); assert_eq!(options, options2); assert_eq!(msg, msg2);