From 4d21b065b1f61505c750d86d80801289ec410681 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20K=C3=B6cher?= Date: Tue, 4 Jul 2023 00:02:36 +0200 Subject: [PATCH] Fix :see_no_evil: --- tests/purge_chain_works.rs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/tests/purge_chain_works.rs b/tests/purge_chain_works.rs index 8aeace032a41..3e9a37814781 100644 --- a/tests/purge_chain_works.rs +++ b/tests/purge_chain_works.rs @@ -55,9 +55,9 @@ async fn purge_chain_rocksdb_works() { kill(Pid::from_raw(cmd.id().try_into().unwrap()), SIGINT).unwrap(); // Wait for the node to handle it and exit. assert!(common::wait_for(&mut cmd, 30).map(|x| x.success()).unwrap_or_default()); - assert!(tmpdir.path().join("chains/polkadot-dev").exists()); - assert!(tmpdir.path().join("chains/polkadot-dev/db/full").exists()); - assert!(tmpdir.path().join("chains/polkadot-dev/db/full/parachains").exists()); + assert!(tmpdir.path().join("chains/polkadot_dev").exists()); + assert!(tmpdir.path().join("chains/polkadot_dev/db/full").exists()); + assert!(tmpdir.path().join("chains/polkadot_dev/db/full/parachains").exists()); // Purge chain let status = Command::new(cargo_bin("polkadot")) @@ -69,8 +69,8 @@ async fn purge_chain_rocksdb_works() { assert!(status.success()); // Make sure that the chain folder exists, but `db/full` is deleted. - assert!(tmpdir.path().join("chains/polkadot-dev").exists()); - assert!(!tmpdir.path().join("chains/polkadot-dev/db/full").exists()); + assert!(tmpdir.path().join("chains/polkadot_dev").exists()); + assert!(!tmpdir.path().join("chains/polkadot_dev/db/full").exists()); } #[tokio::test] @@ -105,9 +105,9 @@ async fn purge_chain_paritydb_works() { kill(Pid::from_raw(cmd.id().try_into().unwrap()), SIGINT).unwrap(); // Wait for the node to handle it and exit. assert!(common::wait_for(&mut cmd, 30).map(|x| x.success()).unwrap_or_default()); - assert!(tmpdir.path().join("chains/polkadot-dev").exists()); - assert!(tmpdir.path().join("chains/polkadot-dev/paritydb/full").exists()); - assert!(tmpdir.path().join("chains/polkadot-dev/paritydb/parachains").exists()); + assert!(tmpdir.path().join("chains/polkadot_dev").exists()); + assert!(tmpdir.path().join("chains/polkadot_dev/paritydb/full").exists()); + assert!(tmpdir.path().join("chains/polkadot_dev/paritydb/parachains").exists()); // Purge chain let status = Command::new(cargo_bin("polkadot")) @@ -121,8 +121,8 @@ async fn purge_chain_paritydb_works() { assert!(status.success()); // Make sure that the chain folder exists, but `db/full` is deleted. - assert!(tmpdir.path().join("chains/polkadot-dev").exists()); - assert!(!tmpdir.path().join("chains/polkadot-dev/paritydb/full").exists()); + assert!(tmpdir.path().join("chains/polkadot_dev").exists()); + assert!(!tmpdir.path().join("chains/polkadot_dev/paritydb/full").exists()); // Parachains removal requires calling "purge-chain --parachains". - assert!(tmpdir.path().join("chains/polkadot-dev/paritydb/parachains").exists()); + assert!(tmpdir.path().join("chains/polkadot_dev/paritydb/parachains").exists()); }