add a test

This commit is contained in:
andy 2020-10-03 00:10:36 -03:00
parent 114ed07adc
commit 046ca492a8

View File

@ -9,7 +9,7 @@ mod common;
use common::*;
#[async_std::test]
pub async fn test_save_options<EG: EntityGateway>(ship: &mut ShipServerState<EG>, id: ClientId, options: u32) {
async fn test_save_options<EG: EntityGateway>(ship: &mut ShipServerState<EG>, id: ClientId, options: u32) {
let mut entity_gateway = InMemoryGateway::new();
let (user1, _char1) = new_user_character(&mut entity_gateway, "a1", "a").await;
@ -28,4 +28,4 @@ pub async fn test_save_options<EG: EntityGateway>(ship: &mut ShipServerState<EG>
let char = characters[0].as_ref().unwrap();
assert!(char.option_flags == 12345);
}
}