From ba1328d50960e340bf666bd795138b610bac9b01 Mon Sep 17 00:00:00 2001 From: Macpie Date: Wed, 11 Dec 2024 13:24:48 -0800 Subject: [PATCH] Fix check_speedtest_avg_in_radio_reward_v2 --- mobile_verifier/src/reward_shares.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mobile_verifier/src/reward_shares.rs b/mobile_verifier/src/reward_shares.rs index a36a41bcf..4ecb56c32 100644 --- a/mobile_verifier/src/reward_shares.rs +++ b/mobile_verifier/src/reward_shares.rs @@ -1237,7 +1237,7 @@ mod test { timestamp, upload_speed: bytes_per_s(10), download_speed: bytes_per_s(100), - latency: 50, + latency: 10, serial: "".to_string(), }, }; @@ -1247,7 +1247,7 @@ mod test { timestamp, upload_speed: bytes_per_s(20), download_speed: bytes_per_s(200), - latency: 100, + latency: 20, serial: "".to_string(), }, }; @@ -1290,7 +1290,7 @@ mod test { let speedtest_avg = radio_reward.speedtest_average.unwrap(); assert_eq!(speedtest_avg.upload_speed_bps, bytes_per_s(15)); assert_eq!(speedtest_avg.download_speed_bps, bytes_per_s(150)); - assert_eq!(speedtest_avg.latency_ms, 75); + assert_eq!(speedtest_avg.latency_ms, 15); } /// Test to ensure that different speedtest averages correctly afferct reward shares.