Browse Source

andy whyyyy pt 2

pbs
jake 5 years ago
parent
commit
780aa2d7e9
  1. 5
      src/login/character.rs

5
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::<Vec<_>>();
let send = server.handle(1, &RecvCharacterPacket::Checksum(Checksum {flag: 0,
checksum: 1234,
padding: 0,
})).collect::<Vec<_>>();
assert!(send.len() == 1);
let bytes = send[0].1.as_bytes();

Loading…
Cancel
Save