|
|
@ -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();
|
|
|
|