mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 15:11:02 +00:00
Retire puppet workers (#1449)
Closes #583 After the separation of PVF worker binaries, dedicated puppet workers are not needed for tests anymore. The production workers can be used instead, avoiding some code duplication and decreasing complexity. The changes also make it possible to further refactor the code to isolate workers completely.
This commit is contained in:
@@ -17,8 +17,6 @@
|
||||
//! Integration test that ensures that we can build and include parachain
|
||||
//! blocks of the `Undying` parachain.
|
||||
|
||||
const PUPPET_EXE: &str = env!("CARGO_BIN_EXE_undying_collator_puppet_worker");
|
||||
|
||||
// If this test is failing, make sure to run all tests with the `real-overseer` feature being
|
||||
// enabled.
|
||||
#[tokio::test(flavor = "multi_thread")]
|
||||
@@ -40,8 +38,12 @@ async fn collating_using_undying_collator() {
|
||||
true,
|
||||
);
|
||||
|
||||
let mut workers_path = std::env::current_exe().unwrap();
|
||||
workers_path.pop();
|
||||
workers_path.pop();
|
||||
|
||||
// start alice
|
||||
let alice = polkadot_test_service::run_validator_node(alice_config, Some(PUPPET_EXE.into()));
|
||||
let alice = polkadot_test_service::run_validator_node(alice_config, Some(workers_path.clone()));
|
||||
|
||||
let bob_config = polkadot_test_service::node_config(
|
||||
|| {},
|
||||
@@ -52,7 +54,7 @@ async fn collating_using_undying_collator() {
|
||||
);
|
||||
|
||||
// start bob
|
||||
let bob = polkadot_test_service::run_validator_node(bob_config, Some(PUPPET_EXE.into()));
|
||||
let bob = polkadot_test_service::run_validator_node(bob_config, Some(workers_path));
|
||||
|
||||
let collator = test_parachain_undying_collator::Collator::new(1_000, 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user