From 8028c34f7965645b4702d77bad64c18e4418668d Mon Sep 17 00:00:00 2001 From: Jeremy Whiting Date: Fri, 23 May 2025 14:51:56 -0600 Subject: [PATCH] Fix test that broke by adding serde_json. Since serde_json::Value also implements PartialEq for f64 we needed to fix the test to either specify the type or just check for empty. --- src/manager/root.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/manager/root.rs b/src/manager/root.rs index 48260d3..9971811 100644 --- a/src/manager/root.rs +++ b/src/manager/root.rs @@ -656,7 +656,7 @@ mod test { fake_model(SteamDeckVariant::Unknown) .await .expect("fake_model"); - assert_eq!(proxy.als_calibration_gain().await.unwrap(), &[]); + assert!(proxy.als_calibration_gain().await.unwrap().is_empty()); fake_model(SteamDeckVariant::Jupiter) .await