aboutsummaryrefslogtreecommitdiff
path: root/azalea-auth/src
diff options
context:
space:
mode:
authorEightFactorial <murphkev000@gmail.com>2023-01-25 09:51:27 -0800
committerGitHub <noreply@github.com>2023-01-25 11:51:27 -0600
commit9a66cb97a659ed1f0e52ba3d9438de1d9b78d64a (patch)
tree16405cec7c45fb952509a5f93f6970b511315046 /azalea-auth/src
parent473c74175c3a8189616bded528e3e6e4785dd3c8 (diff)
downloadazalea-drasl-9a66cb97a659ed1f0e52ba3d9438de1d9b78d64a.tar.xz
Fix test and packets (#60)
* Fix test and packets * Fix bug, fix a couple more packets * add tests and fix stuff * fix warnings Co-authored-by: Ubuntu <github@matdoes.dev>
Diffstat (limited to 'azalea-auth/src')
-rwxr-xr-xazalea-auth/src/game_profile.rs9
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()),
},
);