fix test after rebase
This commit is contained in:
		
							parent
							
								
									ead1752978
								
							
						
					
					
						commit
						e08c582f17
					
				| @ -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, | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user