Companion for Polkadot#7451 (#2807)

* Companion for Polkadot#7451

https://github.com/paritytech/polkadot/pull/7451

* Update Substrate & Polkadot

* FMT

* Fix integration tests

* Bring back `polkadot-native` feature for now

* 🤦
This commit is contained in:
Bastian Köcher
2023-07-04 17:39:05 +02:00
committed by GitHub
parent 5d1de99799
commit 429e9eae09
8 changed files with 482 additions and 438 deletions
@@ -30,12 +30,12 @@ async fn purge_chain_works() {
let base_dir = tempdir().expect("could not create a temp dir");
let base_dir_path = format!("{}/polkadot", base_dir.path().display());
let args = &["--", "--dev", "-d", &base_dir_path];
let args = &["--", "-d", &base_dir_path, "--chain=rococo-local"];
common::run_node_for_a_while(base_dir.path(), args, SIGINT).await;
assert!(base_dir.path().join("chains/local_testnet/db/full").exists());
assert!(base_dir.path().join("polkadot/chains/dev/db/full").exists());
assert!(base_dir.path().join("polkadot/chains/rococo_local_testnet/db/full").exists());
let status = Command::new(cargo_bin("polkadot-parachain"))
.args(["purge-chain", "-d"])
@@ -48,6 +48,6 @@ async fn purge_chain_works() {
// Make sure that the `parachain_local_testnet` chain folder exists, but the `db` is deleted.
assert!(base_dir.path().join("chains/local_testnet").exists());
assert!(!base_dir.path().join("chains/local_testnet/db/full").exists());
// assert!(base_path.path().join("polkadot/chains/dev").exists());
// assert!(!base_path.path().join("polkadot/chains/dev/db").exists());
assert!(base_dir.path().join("polkadot/chains/rococo_local_testnet").exists());
assert!(!base_dir.path().join("polkadot/chains/rococo_local_testnet/db/full").exists());
}