|
@ -119,7 +119,7 @@ async fn test_load_rare_monster_default_appear_rates() { |
|
|
#[async_std::test]
|
|
|
#[async_std::test]
|
|
|
async fn test_set_valid_quest_group() {
|
|
|
async fn test_set_valid_quest_group() {
|
|
|
let mut entity_gateway = InMemoryGateway::default();
|
|
|
let mut entity_gateway = InMemoryGateway::default();
|
|
|
let (_user1, _char1) = new_user_character(&mut entity_gateway, "a1", "a").await;
|
|
|
|
|
|
|
|
|
let (_user1, _char1) = new_user_character(&mut entity_gateway, "a1", "a", 1).await;
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
.gateway(entity_gateway.clone())
|
|
|
.gateway(entity_gateway.clone())
|
|
|
.build());
|
|
|
.build());
|
|
@ -139,7 +139,7 @@ async fn test_set_valid_quest_group() { |
|
|
#[async_std::test]
|
|
|
#[async_std::test]
|
|
|
async fn test_set_invalid_quest_group() {
|
|
|
async fn test_set_invalid_quest_group() {
|
|
|
let mut entity_gateway = InMemoryGateway::default();
|
|
|
let mut entity_gateway = InMemoryGateway::default();
|
|
|
let (_user1, _char1) = new_user_character(&mut entity_gateway, "a1", "a").await;
|
|
|
|
|
|
|
|
|
let (_user1, _char1) = new_user_character(&mut entity_gateway, "a1", "a", 1).await;
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
let mut ship = Box::new(ShipServerState::builder()
|
|
|
.gateway(entity_gateway.clone())
|
|
|
.gateway(entity_gateway.clone())
|
|
|
.build());
|
|
|
.build());
|
|
|