mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-12-01 06:49:56 +00:00
testing: Remove old lightclient object
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
2 files changed
+20
-11
No files matched your search
@@ -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