From 780aa2d7e9c5cc0c085803d83d5ebcfdd0a76c5c Mon Sep 17 00:00:00 2001 From: jake Date: Sat, 7 Sep 2019 23:48:08 -0700 Subject: [PATCH] andy whyyyy pt 2 --- src/login/character.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/login/character.rs b/src/login/character.rs index 386bd9d..7e1385f 100644 --- a/src/login/character.rs +++ b/src/login/character.rs @@ -228,7 +228,10 @@ mod test { struct TestData; impl DataAccess for TestData {} let mut server = CharacterServerState::new(TestData {}); - let send = server.handle(1, &RecvCharacterPacket::Checksum(Checksum {flag: 0})).collect::>(); + let send = server.handle(1, &RecvCharacterPacket::Checksum(Checksum {flag: 0, + checksum: 1234, + padding: 0, + })).collect::>(); assert!(send.len() == 1); let bytes = send[0].1.as_bytes();