Skip to content

Commit

Permalink
tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
andymck committed Jan 10, 2024
1 parent 8cc7a5b commit e9c788f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions iot_verifier/tests/rewarder_operations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ async fn test_operations() -> anyhow::Result<()> {
receive_expected_rewards(&mut iot_rewards)
);
if let Ok(ops_reward) = rewards {
println!("ops reward {:?}", ops_reward);
// confirm the total rewards allocated matches expectations
let expected_total = reward_share::get_scheduled_ops_fund_tokens(epoch.end - epoch.start)
.to_u64()
Expand All @@ -41,8 +40,7 @@ async fn test_operations() -> anyhow::Result<()> {
async fn receive_expected_rewards(
iot_rewards: &mut MockFileSinkReceiver,
) -> anyhow::Result<OperationalReward> {
// expect one unallocated reward
// as oracle rewards are currently 100% unallocated
// expect one operational reward msg
let reward = iot_rewards.receive_operational_reward().await;

// should be no further msgs
Expand Down
1 change: 0 additions & 1 deletion iot_verifier/tests/rewarder_oracles.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ async fn test_oracles(_pool: PgPool) -> anyhow::Result<()> {
receive_expected_rewards(&mut iot_rewards)
);
if let Ok(unallocated_oracle_reward) = rewards {
println!("unallocated oracles reward {:?}", unallocated_oracle_reward);
// confirm the total rewards matches expectations
let expected_total = reward_share::get_scheduled_oracle_tokens(epoch.end - epoch.start)
.to_u64()
Expand Down
1 change: 1 addition & 0 deletions iot_verifier/tests/rewarder_poc_dc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ async fn receive_expected_rewards(
let gateway_reward3 = iot_rewards.receive_gateway_reward().await;
let gateway_reward4 = iot_rewards.receive_gateway_reward().await;
let unallocated_poc_reward = iot_rewards.receive_unallocated_reward().await;

// should be no further msgs
iot_rewards.assert_no_messages();

Expand Down

0 comments on commit e9c788f

Please sign in to comment.