From c7ace8b3c72f1bc72c779a3074f5bc564bc547ee Mon Sep 17 00:00:00 2001 From: sam elamin Date: Tue, 20 Dec 2022 20:46:12 +0400 Subject: [PATCH] refactor tests based on pr comments --- .../tests/0007-full_node_warp_sync.feature | 5 +++++ zombienet/tests/0007-full_node_warp_sync.toml | 20 ++++++++++++++++++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/zombienet/tests/0007-full_node_warp_sync.feature b/zombienet/tests/0007-full_node_warp_sync.feature index 1570b0d888e..78417dfcf58 100644 --- a/zombienet/tests/0007-full_node_warp_sync.feature +++ b/zombienet/tests/0007-full_node_warp_sync.feature @@ -7,6 +7,11 @@ bob: is up charlie: is up dave: is up eve: is up +ferdie: is up +george: is up +george: pause alice: parachain 2000 is registered within 225 seconds dave: reports block height is at least 7 within 250 seconds eve: reports block height is at least 7 within 250 seconds +george: resume +george: reports block height is at least 7 within 250 seconds \ No newline at end of file diff --git a/zombienet/tests/0007-full_node_warp_sync.toml b/zombienet/tests/0007-full_node_warp_sync.toml index 076a16ad640..8411c7eebab 100644 --- a/zombienet/tests/0007-full_node_warp_sync.toml +++ b/zombienet/tests/0007-full_node_warp_sync.toml @@ -31,7 +31,7 @@ cumulus_based = true validator = false image = "{{COL_IMAGE}}" command = "test-parachain" - args = ["--reserved-only", "--reserved-nodes {{'charlie'|zombie('multiAddress')}}", "--sync warp"] + args = ["--reserved-only", "--reserved-nodes {{'charlie'|zombie('multiAddress')}}"] # run cumulus eve (a parachain full node) and wait for it to sync some blocks [[parachains.collators]] @@ -39,4 +39,22 @@ cumulus_based = true validator = false image = "{{COL_IMAGE}}" command = "test-parachain" + args = ["--reserved-only", "--reserved-nodes {{'charlie'|zombie('multiAddress')}}", "--relay-chain-rpc-url {{'alice'|zombie('wsUri')}}"] + + # run cumulus ferdie (a parachain full node) and wait for it to sync some blocks + [[parachains.collators]] + name = "ferdie" + validator = false + image = "{{COL_IMAGE}}" + command = "test-parachain" + args = ["--reserved-only", "--reserved-nodes {{'charlie'|zombie('multiAddress')}}", "--relay-chain-rpc-url {{'alice'|zombie('wsUri')}}"] + + + # run cumulus george (a parachain full node) and wait for it to sync some blocks + [[parachains.collators]] + name = "george" + validator = false + image = "{{COL_IMAGE}}" + command = "test-parachain" args = ["--reserved-only", "--reserved-nodes {{'charlie'|zombie('multiAddress')}}", "--relay-chain-rpc-url {{'alice'|zombie('wsUri')}}", "--sync warp"] +