Skip to content

Commit

Permalink
tests: Hoist up usage of install_test_trace_subscriber()
Browse files Browse the repository at this point in the history
  • Loading branch information
inahga committed Jul 9, 2024
1 parent 281b727 commit a1baa3a
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions aggregator/src/aggregator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3563,6 +3563,7 @@ mod tests {
where
R: Runtime + Send + Sync + 'static,
{
install_test_trace_subscriber();
let clock = MockClock::default();
let vdaf = Prio3Count::new_count(2).unwrap();
let task = TaskBuilder::new(QueryType::TimeInterval, VdafInstance::Prio3Count).build();
Expand Down Expand Up @@ -3598,8 +3599,6 @@ mod tests {

#[tokio::test]
async fn upload() {
install_test_trace_subscriber();

let UploadTest {
vdaf,
aggregator,
Expand Down Expand Up @@ -3682,8 +3681,6 @@ mod tests {

#[tokio::test]
async fn upload_batch() {
install_test_trace_subscriber();

const BATCH_SIZE: usize = 100;
let UploadTest {
vdaf,
Expand Down Expand Up @@ -3747,8 +3744,6 @@ mod tests {

#[tokio::test]
async fn upload_wrong_hpke_config_id() {
install_test_trace_subscriber();

let mut runtime_manager = TestRuntimeManager::new();
let UploadTest {
aggregator,
Expand Down Expand Up @@ -3818,8 +3813,6 @@ mod tests {

#[tokio::test]
async fn upload_report_in_the_future_boundary_condition() {
install_test_trace_subscriber();

let UploadTest {
vdaf,
aggregator,
Expand Down Expand Up @@ -3868,7 +3861,6 @@ mod tests {

#[tokio::test]
async fn upload_report_in_the_future_past_clock_skew() {
install_test_trace_subscriber();
let mut runtime_manager = TestRuntimeManager::new();
let UploadTest {
aggregator,
Expand Down Expand Up @@ -3925,8 +3917,6 @@ mod tests {

#[tokio::test]
async fn upload_report_for_collected_batch() {
install_test_trace_subscriber();

let mut runtime_manager = TestRuntimeManager::new();
let UploadTest {
aggregator,
Expand Down Expand Up @@ -4010,8 +4000,6 @@ mod tests {

#[tokio::test]
async fn upload_report_encrypted_with_task_specific_key() {
install_test_trace_subscriber();

let UploadTest {
vdaf,
aggregator,
Expand Down Expand Up @@ -4076,7 +4064,6 @@ mod tests {

#[tokio::test]
async fn upload_report_task_expired() {
install_test_trace_subscriber();
let mut runtime_manager = TestRuntimeManager::new();
let UploadTest {
aggregator,
Expand Down Expand Up @@ -4137,7 +4124,6 @@ mod tests {

#[tokio::test]
async fn upload_report_report_expired() {
install_test_trace_subscriber();
let mut runtime_manager = TestRuntimeManager::new();
let UploadTest {
aggregator,
Expand Down Expand Up @@ -4199,7 +4185,6 @@ mod tests {

#[tokio::test]
async fn upload_report_faulty_encryption() {
install_test_trace_subscriber();
let mut runtime_manager = TestRuntimeManager::new();
let UploadTest {
aggregator,
Expand Down Expand Up @@ -4262,7 +4247,6 @@ mod tests {

#[tokio::test]
async fn upload_report_public_share_decode_failure() {
install_test_trace_subscriber();
let mut runtime_manager = TestRuntimeManager::new();
let UploadTest {
aggregator,
Expand Down Expand Up @@ -4324,7 +4308,6 @@ mod tests {

#[tokio::test]
async fn upload_report_leader_input_share_decode_failure() {
install_test_trace_subscriber();
let mut runtime_manager = TestRuntimeManager::new();
let UploadTest {
aggregator,
Expand Down

0 comments on commit a1baa3a

Please sign in to comment.