Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
andymck committed Jan 2, 2024
1 parent bb5b018 commit 54c4c85
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions mobile_verifier/src/reward_shares.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1733,15 +1733,16 @@ mod test {
let mut owner_rewards = HashMap::<PublicKeyBinary, u64>::new();
let duration = Duration::hours(1);
let epoch = (now - duration)..now;
for mobile_reward in CoveragePoints::aggregate_points(
let total_poc_rewards = get_scheduled_tokens_for_poc(epoch.end - epoch.start);
for (_reward_amount, mobile_reward) in CoveragePoints::aggregate_points(
&hex_coverage,
stream::iter(heartbeat_rewards),
&speedtest_avgs,
DateTime::<Utc>::MIN_UTC,
)
.await
.unwrap()
.into_rewards(Decimal::ZERO, &epoch)
.into_rewards(total_poc_rewards, &epoch)
.unwrap()
{
let radio_reward = match mobile_reward.reward {
Expand All @@ -1757,7 +1758,7 @@ mod test {
}

// These were different, now they are the same:

println!("owner rewards {:?}", owner_rewards);
// wifi
let owner1_reward = *owner_rewards
.get(&owner1)
Expand Down

0 comments on commit 54c4c85

Please sign in to comment.