Refactoring Checkpoint: (WIP)
This commit is contained in:
@@ -45,7 +45,7 @@ async fn send_future_and_ready_from_many_accounts_to_teyrchain() {
|
||||
net.wait_for_block("charlie", BlockSubscriptionType::Best).await.unwrap();
|
||||
|
||||
// Create future & ready txs executors.
|
||||
let ws = net.node_rpc_uri("charlie").unwrap();
|
||||
let ws = net.pez_node_rpc_uri("charlie").unwrap();
|
||||
let future_scenario_executor = default_zn_scenario_builder(&net)
|
||||
.with_rpc_uri(ws.clone())
|
||||
.with_start_id(0)
|
||||
@@ -97,7 +97,7 @@ async fn send_future_and_ready_from_many_accounts_to_relaychain() {
|
||||
net.wait_for_block("alice", BlockSubscriptionType::Best).await.unwrap();
|
||||
|
||||
// Create future & ready txs executors.
|
||||
let ws = net.node_rpc_uri("alice").unwrap();
|
||||
let ws = net.pez_node_rpc_uri("alice").unwrap();
|
||||
let future_scenario_executor = default_zn_scenario_builder(&net)
|
||||
.with_rpc_uri(ws.clone())
|
||||
.with_start_id(0)
|
||||
@@ -154,7 +154,7 @@ async fn send_future_mortal_txs() {
|
||||
net.wait_for_block("alice", BlockSubscriptionType::Finalized).await.unwrap();
|
||||
|
||||
// Create txs executors.
|
||||
let ws = net.node_rpc_uri("alice").unwrap();
|
||||
let ws = net.pez_node_rpc_uri("alice").unwrap();
|
||||
let ready_scenario_executor = default_zn_scenario_builder(&net)
|
||||
.with_rpc_uri(ws.clone())
|
||||
.with_start_id(0)
|
||||
@@ -228,7 +228,7 @@ async fn send_lower_priority_mortal_txs() {
|
||||
net.wait_for_block("alice", BlockSubscriptionType::Finalized).await.unwrap();
|
||||
|
||||
// Create txs executors.
|
||||
let ws = net.node_rpc_uri("alice").unwrap();
|
||||
let ws = net.pez_node_rpc_uri("alice").unwrap();
|
||||
let ready_scenario_executor = default_zn_scenario_builder(&net)
|
||||
.with_rpc_uri(ws.clone())
|
||||
.with_start_id(0)
|
||||
@@ -313,7 +313,7 @@ async fn send_5m_from_many_accounts_to_teyrchain() {
|
||||
net.wait_for_block("charlie", BlockSubscriptionType::Best).await.unwrap();
|
||||
|
||||
// Create txs executor.
|
||||
let ws = net.node_rpc_uri("charlie").unwrap();
|
||||
let ws = net.pez_node_rpc_uri("charlie").unwrap();
|
||||
let executor = default_zn_scenario_builder(&net)
|
||||
.with_rpc_uri(ws)
|
||||
.with_start_id(0)
|
||||
@@ -343,7 +343,7 @@ async fn send_5m_from_many_accounts_to_relaychain() {
|
||||
net.wait_for_block("alice", BlockSubscriptionType::Best).await.unwrap();
|
||||
|
||||
// Create txs executor.
|
||||
let ws = net.node_rpc_uri("alice").unwrap();
|
||||
let ws = net.pez_node_rpc_uri("alice").unwrap();
|
||||
let executor = default_zn_scenario_builder(&net)
|
||||
.with_rpc_uri(ws.clone())
|
||||
.with_start_id(0)
|
||||
@@ -375,7 +375,7 @@ async fn gossiping() {
|
||||
net.wait_for_block("a00", BlockSubscriptionType::Best).await.unwrap();
|
||||
|
||||
// Create the txs executor.
|
||||
let ws = net.node_rpc_uri("a00").unwrap();
|
||||
let ws = net.pez_node_rpc_uri("a00").unwrap();
|
||||
let executor = default_zn_scenario_builder(&net)
|
||||
.with_rpc_uri(ws)
|
||||
.with_start_id(0)
|
||||
@@ -402,7 +402,7 @@ async fn send_batch(
|
||||
to: u32,
|
||||
prio: u32,
|
||||
) -> ScenarioExecutor {
|
||||
let ws = net.node_rpc_uri(node_name).unwrap();
|
||||
let ws = net.pez_node_rpc_uri(node_name).unwrap();
|
||||
info!(from, to, prio, "send_batch");
|
||||
default_zn_scenario_builder(net)
|
||||
.with_rpc_uri(ws)
|
||||
|
||||
@@ -209,7 +209,7 @@ impl NetworkSpawner {
|
||||
}
|
||||
|
||||
/// Get a certain node rpc uri.
|
||||
pub fn node_rpc_uri(&self, node_name: &str) -> Result<String> {
|
||||
pub fn pez_node_rpc_uri(&self, node_name: &str) -> Result<String> {
|
||||
self.network
|
||||
.get_node(node_name)
|
||||
.and_then(|node| Ok(node.ws_uri().to_string()))
|
||||
|
||||
@@ -114,7 +114,7 @@ async fn slot_based_3cores_test() -> Result<(), anyhow::Error> {
|
||||
spawner.wait_for_block("dave", BlockSubscriptionType::Best).await.unwrap();
|
||||
|
||||
// Create txs executor.
|
||||
let ws = spawner.node_rpc_uri("dave").unwrap();
|
||||
let ws = spawner.pez_node_rpc_uri("dave").unwrap();
|
||||
let executor = {
|
||||
let shared_params = ScenarioBuilderSharedParams::default();
|
||||
ScenarioBuilder::new()
|
||||
|
||||
Reference in New Issue
Block a user