Skip to content

Commit

Permalink
Remove tracing::init in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
quackzar committed Sep 16, 2024
1 parent 2ceafcb commit ea03319
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
5 changes: 0 additions & 5 deletions src/net/mux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,6 @@ mod test {

#[tokio::test]
async fn connection_works() {
tracing_forest::init();
let (c1, c2) = Connection::in_memory();
let p1 = async {
let (gateway, mut muxes) = Gateway::multiplex(c1, 3);
Expand Down Expand Up @@ -642,7 +641,6 @@ mod test {

#[tokio::test]
async fn connection_handles_errors() {
tracing_forest::init();
let (c1, c2) = Connection::in_memory();
let p1 = async {
let (gateway, mut muxes) = Gateway::multiplex(c1, 3);
Expand Down Expand Up @@ -671,7 +669,6 @@ mod test {

#[tokio::test]
async fn network() {
tracing_forest::init();
crate::testing::Cluster::new(3)
.run(|net| async move {
let (gateway, mut muxed) = NetworkGateway::multiplex(net, 2);
Expand All @@ -698,7 +695,6 @@ mod test {

#[tokio::test]
async fn network_borrowed() {
tracing_forest::init();
crate::testing::Cluster::new(3)
.run(|mut net| async move {
let net_ref = net.as_mut();
Expand All @@ -725,7 +721,6 @@ mod test {

#[tokio::test]
async fn network_borrowed_no_tasks() {
tracing_forest::init();
let res = crate::testing::Cluster::new(3)
.run(|mut net| async move {
let net_ref = net.as_mut();
Expand Down
4 changes: 0 additions & 4 deletions src/schemes/spdz/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -655,8 +655,6 @@ mod test {

#[tokio::test]
async fn symmetric_sharing() {
tracing_forest::init();

let rng = rand::rngs::mock::StepRng::new(7, 32);
let (ctxs, _secrets) = preprocessing::dealer_preproc::<Element32>(rng, &[1, 1, 1], 0, 3);

Expand Down Expand Up @@ -684,8 +682,6 @@ mod test {

#[tokio::test]
async fn symmetric_sharing_many() {
tracing_forest::init();

let rng = rand::rngs::mock::StepRng::new(7, 32);
let (ctxs, _secrets) = preprocessing::dealer_preproc::<Element32>(rng, &[1, 1, 1], 0, 3);

Expand Down
3 changes: 0 additions & 3 deletions wecare/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,6 @@ mod test {

#[test]
fn sunshine_shamir() {
tracing_forest::init();
use std::thread;
let t1 = thread::spawn(move || {
println!("[1] Setting up...");
Expand Down Expand Up @@ -356,7 +355,6 @@ mod test {

#[test]
fn sunshine_spdz() {
tracing_forest::init();
use std::thread;
let ctx1 = tempfile::tempfile().unwrap();
let ctx2 = tempfile::tempfile().unwrap();
Expand Down Expand Up @@ -404,7 +402,6 @@ mod test {

#[test]
fn sunshine_spdz_for_two() {
tracing_forest::init();
use std::thread;

let ctx1 = tempfile::tempfile().unwrap();
Expand Down

0 comments on commit ea03319

Please sign in to comment.