From 74e461dbabe69cc226205ce38833833ef48ba042 Mon Sep 17 00:00:00 2001 From: zvolin Date: Thu, 19 Dec 2024 14:16:31 +0100 Subject: [PATCH] remove sleep from tests --- grpc/tests/utils/mod.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/grpc/tests/utils/mod.rs b/grpc/tests/utils/mod.rs index 759a5b52..d86406e0 100644 --- a/grpc/tests/utils/mod.rs +++ b/grpc/tests/utils/mod.rs @@ -46,7 +46,6 @@ pub fn load_account() -> TestAccount { #[cfg(not(target_arch = "wasm32"))] mod imp { - use std::time::Duration; use std::{future::Future, sync::OnceLock}; use celestia_grpc::{GrpcClient, TxClient}; @@ -85,10 +84,6 @@ mod imp { (lock, client) } - pub async fn sleep(duration: Duration) { - tokio::time::sleep(duration).await; - } - pub fn spawn(future: F) -> tokio::task::JoinHandle<()> where F: Future + Send + 'static, @@ -100,7 +95,6 @@ mod imp { #[cfg(target_arch = "wasm32")] mod imp { use std::future::Future; - use std::time::Duration; use celestia_grpc::{GrpcClient, TxClient}; use tokio::sync::oneshot;