From 9d2e481e1fe9c872c79d49dbda7db7796809c4bb Mon Sep 17 00:00:00 2001 From: Al Liu Date: Thu, 21 Sep 2023 13:51:16 +0800 Subject: [PATCH] fix warnings --- tests/src/tests/happy.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/src/tests/happy.rs b/tests/src/tests/happy.rs index bb75d9647..bbc425819 100644 --- a/tests/src/tests/happy.rs +++ b/tests/src/tests/happy.rs @@ -1,4 +1,4 @@ -use consensus_engine::{AggregateQc, Block, Qc, View}; +use consensus_engine::{Qc, View}; use fraction::{Fraction, One}; use futures::stream::{self, StreamExt}; use std::collections::HashSet; @@ -13,7 +13,7 @@ struct Info { view: View, } -async fn happy_test(name: &'static str, nodes: Vec) { +async fn happy_test(nodes: Vec) { let timeout = std::time::Duration::from_secs(20); let timeout = tokio::time::sleep(timeout); tokio::select! { @@ -83,7 +83,7 @@ async fn two_nodes_happy() { mixnet_topology, }) .await; - happy_test("two_nodes", nodes).await; + happy_test(nodes).await; } #[tokio::test] @@ -97,5 +97,5 @@ async fn ten_nodes_happy() { mixnet_topology, }) .await; - happy_test("ten_nodes", nodes).await; + happy_test(nodes).await; }