Skip to content

Commit

Permalink
Fix compact gate tests
Browse files Browse the repository at this point in the history
  • Loading branch information
akoshelev committed Nov 7, 2024
1 parent c773119 commit 6c07a50
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ipa-core/src/protocol/hybrid/oprf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,11 @@ where

#[cfg(all(test, feature = "in-memory-infra", not(feature = "shuttle")))]
mod test {
use ipa_step::StepNarrow;

use crate::{
ff::boolean_array::{BA3, BA8},
protocol::hybrid::oprf::compute_prf_for_inputs,
protocol::{hybrid::oprf::compute_prf_for_inputs, step::ProtocolStep, Gate},
report::hybrid::{HybridReport, IndistinguishableHybridReport},
secret_sharing::IntoShares,
test_executor::run,
Expand All @@ -209,7 +210,10 @@ mod test {
run(|| async {
const SHARDS: usize = 2;
let world: TestWorld<WithShards<SHARDS, RoundRobinInputDistribution>> =
TestWorld::with_shards(TestWorldConfig::default());
TestWorld::with_shards(TestWorldConfig {
initial_gate: Some(Gate::default().narrow(&ProtocolStep::Hybrid)),
..Default::default()
});

let contexts = world.contexts();

Expand Down

0 comments on commit 6c07a50

Please sign in to comment.