From e08c582f17bdb7cf2a80073f5611d0ef23fac628 Mon Sep 17 00:00:00 2001 From: andy Date: Sat, 31 Oct 2020 23:53:06 -0300 Subject: [PATCH] fix test after rebase --- tests/test_item_actions.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_item_actions.rs b/tests/test_item_actions.rs index ae57d52..201f9fa 100644 --- a/tests/test_item_actions.rs +++ b/tests/test_item_actions.rs @@ -277,7 +277,7 @@ async fn test_sort_items() { join_lobby(&mut ship, ClientId(1)).await; create_room(&mut ship, ClientId(1), "room", "").await; - let old_items = entity_gateway.get_items_by_character(&char1).await; + let old_items = entity_gateway.get_items_by_character(&char1.id).await.unwrap(); assert!(old_items[0].item.item_type() == item::ItemType::Armor(item::armor::ArmorType::Frame)); assert!(old_items[0].location == item::ItemLocation::Inventory{ character_id: char1.id, @@ -293,7 +293,7 @@ async fn test_sort_items() { 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF], })))).await.unwrap().for_each(drop); - let items = entity_gateway.get_items_by_character(&char1).await; + let items = entity_gateway.get_items_by_character(&char1.id).await.unwrap(); assert!(items[0].item.item_type() == item::ItemType::Armor(item::armor::ArmorType::Frame)); assert!(items[0].location == item::ItemLocation::Inventory{ character_id: char1.id,