diff options
Diffstat (limited to 'azalea-auth/src')
| -rwxr-xr-x | azalea-auth/src/game_profile.rs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/azalea-auth/src/game_profile.rs b/azalea-auth/src/game_profile.rs index bdd6cda5..12815821 100755 --- a/azalea-auth/src/game_profile.rs +++ b/azalea-auth/src/game_profile.rs @@ -95,9 +95,8 @@ mod tests { } ] }"#; - let profile = GameProfile::from( - serde_json::from_str::<SerializableProfilePropertyValue>(json).unwrap(), - ); + let profile = + GameProfile::from(serde_json::from_str::<SerializableGameProfile>(json).unwrap()); assert_eq!( profile, GameProfile { @@ -106,9 +105,9 @@ mod tests { properties: { let mut map = HashMap::new(); map.insert( - "asdf".to_string(), + "qwer".to_string(), ProfilePropertyValue { - value: "qwer".to_string(), + value: "asdf".to_string(), signature: Some("zxcv".to_string()), }, ); |
