Skip to content

Commit

Permalink
test tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
andymck committed Nov 21, 2023
1 parent 7e5c3e2 commit 2575a2b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions mobile_verifier/src/reward_shares.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1384,7 +1384,8 @@ mod test {

// setup heartbeats
// add 2 wifi indoor HBs
// 2 with a valid location timestamp but a distance to asserted > max
// 1 with an invalid location timestamp
// 1 with a valid location timestamp but a distance to asserted > max
// this results in a final location trust score of 0.25, made up as follows:
// HB1 location score = 0.25
// HB1 location score = 0.25
Expand All @@ -1396,8 +1397,8 @@ mod test {
cell_type: CellType::NovaGenericWifiIndoor,
coverage_object: Some(Uuid::new_v4()),
latest_timestamp: DateTime::<Utc>::MIN_UTC,
location_validation_timestamp: Some(timestamp),
distance_to_asserted: Some(1000),
location_validation_timestamp: None,
distance_to_asserted: None,
},
HeartbeatRow {
cbsd_id: None,
Expand Down Expand Up @@ -1518,7 +1519,8 @@ mod test {
// setup heartbeats
// add 4 wifi indoor HBs
// 2 with a valid location timestamp and a distance to asserted < max
// 2 with a valid location timestamp but a distance to asserted > max
// 1 with an invalid location timestamp
// 1 with a valid location timestamp but a distance to asserted > max
// this results in a final location trust score of 0.625, made up as follows:
// HB1 location score = 1.0
// HB2 location score = 1.0
Expand Down Expand Up @@ -1559,8 +1561,8 @@ mod test {
cell_type: CellType::NovaGenericWifiIndoor,
coverage_object: Some(Uuid::new_v4()),
latest_timestamp: DateTime::<Utc>::MIN_UTC,
location_validation_timestamp: Some(timestamp),
distance_to_asserted: Some(1000),
location_validation_timestamp: None,
distance_to_asserted: None,
},
// add sercomm indoor HB
HeartbeatRow {
Expand Down

0 comments on commit 2575a2b

Please sign in to comment.