From 0feee1c0a241b5c244c417c0b6b50cee4af80151 Mon Sep 17 00:00:00 2001 From: Jake Probst Date: Wed, 21 Aug 2019 23:07:39 -0700 Subject: [PATCH] fix test --- src/packet/login.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/packet/login.rs b/src/packet/login.rs index 248e0b9..e4bd61c 100644 --- a/src/packet/login.rs +++ b/src/packet/login.rs @@ -172,9 +172,9 @@ mod tests { }; let mut bytes = pkt.as_bytes(); - assert!(bytes[11] == 2); + assert!(bytes[8] == 2); - bytes[11] = 8; + bytes[8] = 8; let pkt = super::LoginResponse::from_bytes(&bytes).unwrap(); assert!(pkt.status == super::AccountStatus::InvalidUser);