mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-15 20:51:05 +00:00
testing: Remove old lightclient object
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user