Skip to content

Commit

Permalink
Fix check_speedtest_avg_in_radio_reward_v2
Browse files Browse the repository at this point in the history
  • Loading branch information
macpie committed Dec 11, 2024
1 parent c42cd8a commit ba1328d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mobile_verifier/src/reward_shares.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
},
};
Expand All @@ -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(),
},
};
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit ba1328d

Please sign in to comment.