Skip to content

Commit

Permalink
Check report count in simulation tests (#3425)
Browse files Browse the repository at this point in the history
  • Loading branch information
divergentdave authored Oct 1, 2024
1 parent 33e5cab commit 03903d9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions integration_tests/tests/integration/simulation/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -609,6 +609,11 @@ fn check_aggregate_results_valid<Q: janus_messages::query_type::QueryType>(
);
return false;
}
let sum = collection.aggregate_result().iter().sum::<u128>();
if sum != u128::from(collection.report_count()) {
error!(?collection, "bad report count");
return false;
}
}
true
}

0 comments on commit 03903d9

Please sign in to comment.