testing: Remove old lightclient object

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
Alexandru Vasile
2024-03-26 18:08:13 +02:00
parent d81c70cd1f
commit 00c4b78149
2 changed files with 20 additions and 11 deletions
+1 -10
View File
@@ -4,13 +4,8 @@
pub(crate) use crate::{node_runtime, utils::TestNodeProcess};
use subxt::SubstrateConfig;
#[cfg(lightclient)]
use subxt::client::LightClient;
#[cfg(fullclient)]
use subxt::client::OnlineClient;
use subxt::SubstrateConfig;
/// `substrate-node` should be installed on the $PATH. We fall back
/// to also checking for an older `substrate` binary.
@@ -30,12 +25,8 @@ pub type TestConfig = SubstrateConfig;
pub type TestContext = TestNodeProcess<SubstrateConfig>;
#[cfg(fullclient)]
pub type TestClient = OnlineClient<SubstrateConfig>;
#[cfg(lightclient)]
pub type TestClient = LightClient<SubstrateConfig>;
pub async fn test_context() -> TestContext {
test_context_with("alice".to_string()).await
}