Skip to content

Commit

Permalink
Remove tests prints
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldjeffrey committed Apr 26, 2024
1 parent 1d9bd2e commit 1775860
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
10 changes: 5 additions & 5 deletions mobile_verifier/tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ impl MockFileSinkReceiver {
Some(bytes) => {
let mobile_reward = MobileRewardShare::decode(bytes.as_slice())
.expect("failed to decode expected radio reward");
println!("mobile_reward: {:?}", mobile_reward);

match mobile_reward.reward {
Some(MobileReward::RadioReward(r)) => r,
_ => panic!("failed to get radio reward"),
Expand All @@ -98,7 +98,7 @@ impl MockFileSinkReceiver {
Some(bytes) => {
let mobile_reward = MobileRewardShare::decode(bytes.as_slice())
.expect("failed to decode expected gateway reward");
println!("mobile_reward: {:?}", mobile_reward);

match mobile_reward.reward {
Some(MobileReward::GatewayReward(r)) => r,
_ => panic!("failed to get gateway reward"),
Expand All @@ -113,7 +113,7 @@ impl MockFileSinkReceiver {
Some(bytes) => {
let mobile_reward = MobileRewardShare::decode(bytes.as_slice())
.expect("failed to decode expected service provider reward");
println!("mobile_reward: {:?}", mobile_reward);

match mobile_reward.reward {
Some(MobileReward::ServiceProviderReward(r)) => r,
_ => panic!("failed to get service provider reward"),
Expand All @@ -128,7 +128,7 @@ impl MockFileSinkReceiver {
Some(bytes) => {
let mobile_reward = MobileRewardShare::decode(bytes.as_slice())
.expect("failed to decode expected subscriber reward");
println!("mobile_reward: {:?}", mobile_reward);

match mobile_reward.reward {
Some(MobileReward::SubscriberReward(r)) => r,
_ => panic!("failed to get subscriber reward"),
Expand All @@ -143,7 +143,7 @@ impl MockFileSinkReceiver {
Some(bytes) => {
let mobile_reward = MobileRewardShare::decode(bytes.as_slice())
.expect("failed to decode expected unallocated reward");
println!("mobile_reward: {:?}", mobile_reward);

match mobile_reward.reward {
Some(MobileReward::UnallocatedReward(r)) => r,
_ => panic!("failed to get unallocated reward"),
Expand Down
5 changes: 2 additions & 3 deletions mobile_verifier/tests/hex_boosting.rs
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,6 @@ async fn test_expired_boosted_hex(pool: PgPool) -> anyhow::Result<()> {
];
let start_ts_2 = epoch.start - (boost_period_length * multipliers2.len() as i32);
let end_ts_2 = start_ts_2 + (boost_period_length * multipliers2.len() as i32);
dbg!(epoch.start, start_ts_2, end_ts_2);

let boosted_hexes = vec![
BoostedHexInfo {
Expand Down Expand Up @@ -1165,7 +1164,7 @@ async fn seed_heartbeats_v2(
) -> anyhow::Result<()> {
for n in 0..24 {
let hotspot_key1: PublicKeyBinary = HOTSPOT_1.to_string().parse().unwrap();
println!("0x8a1fb466d2dffff_u64 as u64: {}", 0x8a1fb466d2dffff_u64);

let cov_obj_1 = create_multi_coverage_object(
ts + ChronoDuration::hours(n),
None,
Expand Down Expand Up @@ -1371,7 +1370,7 @@ async fn seed_heartbeats_v4(
) -> anyhow::Result<()> {
for n in 0..24 {
let hotspot_key1: PublicKeyBinary = HOTSPOT_1.to_string().parse().unwrap();
println!("0x8a1fb466d2dffff_u64 as u64: {}", 0x8a1fb466d2dffff_u64);

let cov_obj_1 = create_multi_coverage_object(
ts + ChronoDuration::hours(n),
None,
Expand Down

0 comments on commit 1775860

Please sign in to comment.