mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 12:17:58 +00:00
Adds integration test based on adder collator (#1928)
* Adds integration test based on adder collator This adds an integration test for parachains that uses the adder collator. The test will start two relay chain nodes and one collator and waits until 4 blocks are build and enacted by the parachain. * Make sure the integration test is run in CI * Fix wasm compilation * Update parachain/test-parachains/adder/collator/src/lib.rs Co-authored-by: Sergei Shulepov <sergei@parity.io> * Update cli/src/command.rs Co-authored-by: Sergei Shulepov <sergei@parity.io>
This commit is contained in:
@@ -20,7 +20,7 @@ use sp_keyring::Sr25519Keyring::{Alice, Bob};
|
||||
|
||||
#[substrate_test_utils::test]
|
||||
async fn call_function_actually_work(task_executor: TaskExecutor) {
|
||||
let alice = run_test_node(task_executor, Alice, || {}, Vec::new());
|
||||
let alice = run_validator_node(task_executor, Alice, || {}, Vec::new());
|
||||
|
||||
let function = polkadot_test_runtime::Call::Balances(pallet_balances::Call::transfer(
|
||||
Default::default(),
|
||||
@@ -37,7 +37,7 @@ async fn call_function_actually_work(task_executor: TaskExecutor) {
|
||||
assert_eq!(
|
||||
result.as_str().map(|x| x.starts_with("0x")),
|
||||
Some(true),
|
||||
"result starts with 0x"
|
||||
"result starts with 0x",
|
||||
);
|
||||
|
||||
alice.task_manager.clean_shutdown().await;
|
||||
|
||||
Reference in New Issue
Block a user