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:
Bastian KöcherandSergei Shulepov authored and GitHub committed 2020-11-09 10:26:29 +00:00
1 parent 80a2be8c4b
commit 83661eb8dc
24 files changed
+546 -333

No files matched your search

@@ -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;