Skip to content

Commit

Permalink
0.6 specific fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
inahga committed Jan 26, 2024
1 parent 84c3740 commit 4dba3c4
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions aggregator/src/aggregator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3864,7 +3864,7 @@ mod tests {

// Try to upload the report, verify that we get the expected error.
let error = aggregator
.handle_upload(task.id(), &report.get_encoded().unwrap())
.handle_upload(task.id(), &report.get_encoded())
.await
.unwrap_err();
assert_matches!(
Expand Down Expand Up @@ -3920,7 +3920,7 @@ mod tests {

// Try to upload the report, verify that we get the expected error.
let error = aggregator
.handle_upload(task.id(), &report.get_encoded().unwrap())
.handle_upload(task.id(), &report.get_encoded())
.await
.unwrap_err();
assert_matches!(
Expand Down Expand Up @@ -3976,7 +3976,7 @@ mod tests {

// Try to upload the report, verify that we get the expected error.
let error = aggregator
.handle_upload(task.id(), &report.get_encoded().unwrap())
.handle_upload(task.id(), &report.get_encoded())
.await
.unwrap_err();
assert_matches!(
Expand Down Expand Up @@ -4031,7 +4031,7 @@ mod tests {

// Try to upload the report, verify that we get the expected error.
let error = aggregator
.handle_upload(task.id(), &report.get_encoded().unwrap())
.handle_upload(task.id(), &report.get_encoded())
.await
.unwrap_err();
assert_matches!(
Expand Down Expand Up @@ -4083,24 +4083,21 @@ mod tests {
task.current_hpke_key().config(),
&HpkeApplicationInfo::new(&Label::InputShare, &Role::Client, &Role::Leader),
// Some obviously wrong payload.
&PlaintextInputShare::new(Vec::new(), vec![0; 100])
.get_encoded()
.unwrap(),
&PlaintextInputShare::new(Vec::new(), vec![0; 100]).get_encoded(),
&InputShareAad::new(
*task.id(),
report.metadata().clone(),
report.public_share().to_vec(),
)
.get_encoded()
.unwrap(),
.get_encoded(),
)
.unwrap(),
report.helper_encrypted_input_share().clone(),
);

// Try to upload the report, verify that we get the expected error.
let error = aggregator
.handle_upload(task.id(), &report.get_encoded().unwrap())
.handle_upload(task.id(), &report.get_encoded())
.await
.unwrap_err();
assert_matches!(
Expand Down

0 comments on commit 4dba3c4

Please sign in to comment.