mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 11:01:01 +00:00
Elastic scaling: add e2e test (#3929)
On top of https://github.com/paritytech/polkadot-sdk/pull/3879 I've also moved the previous test where we ensure multiple cores per para doesn't break non elastic parachains. --------- Signed-off-by: Andrei Sandu <andrei-mihail@parity.io> Co-authored-by: Javier Viola <363911+pepoviola@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
Description: Test with adder collator using 3 cores and async backing
|
||||
Network: ./0001-basic-3cores-6s-blocks.toml
|
||||
Creds: config
|
||||
|
||||
# Check authority status.
|
||||
elastic-validator-0: reports node_roles is 4
|
||||
elastic-validator-1: reports node_roles is 4
|
||||
elastic-validator-2: reports node_roles is 4
|
||||
elastic-validator-3: reports node_roles is 4
|
||||
elastic-validator-4: reports node_roles is 4
|
||||
|
||||
|
||||
# Register 2 extra cores to this some-parachain.
|
||||
elastic-validator-0: js-script ./assign-core.js with "2000,0" return is 0 within 600 seconds
|
||||
elastic-validator-0: js-script ./assign-core.js with "2000,1" return is 0 within 600 seconds
|
||||
|
||||
# Wait for 10 relay chain blocks
|
||||
elastic-validator-0: reports substrate_block_height{status="best"} is at least 20 within 120 seconds
|
||||
|
||||
# Parachain should progress with 3 blocks per relay chain block, so it's reasonable to expect state to be
|
||||
# at least 50, assuming some tolerance
|
||||
some-parachain: log line contains "BlockData { state: 50, add: 2 }" within 10 seconds
|
||||
some-parachain-1: count of log lines containing "BlockData { state: 24, add: 2 }" is 0 within 10 seconds
|
||||
|
||||
Reference in New Issue
Block a user