mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 03:31:05 +00:00
Disable integration tests outside of CI (#565)
This commit is contained in:
@@ -21,6 +21,7 @@ mod common;
|
||||
|
||||
#[test]
|
||||
#[cfg(unix)]
|
||||
#[ignore]
|
||||
fn polkadot_argument_parsing() {
|
||||
use nix::{
|
||||
sys::signal::{
|
||||
|
||||
@@ -21,6 +21,7 @@ mod common;
|
||||
|
||||
#[test]
|
||||
#[cfg(unix)]
|
||||
#[ignore]
|
||||
fn interrupt_polkadot_mdns_issue_test() {
|
||||
use nix::{
|
||||
sys::signal::{
|
||||
|
||||
@@ -21,6 +21,7 @@ mod common;
|
||||
|
||||
#[test]
|
||||
#[cfg(unix)]
|
||||
#[ignore]
|
||||
fn purge_chain_works() {
|
||||
fn run_node_and_stop() -> tempfile::TempDir {
|
||||
use nix::{
|
||||
@@ -33,7 +34,7 @@ fn purge_chain_works() {
|
||||
let mut cmd = Command::new(cargo_bin("polkadot-collator"))
|
||||
.args(&["-d"])
|
||||
.arg(base_path.path())
|
||||
.args(&["--"])
|
||||
.args(&["--", "--dev"])
|
||||
.spawn()
|
||||
.unwrap();
|
||||
|
||||
@@ -58,7 +59,7 @@ fn purge_chain_works() {
|
||||
let base_path = run_node_and_stop();
|
||||
|
||||
assert!(base_path.path().join("chains/local_testnet/db").exists());
|
||||
assert!(base_path.path().join("polkadot/chains/westend2/db").exists());
|
||||
assert!(base_path.path().join("polkadot/chains/dev/db").exists());
|
||||
|
||||
let status = Command::new(cargo_bin("polkadot-collator"))
|
||||
.args(&["purge-chain", "-d"])
|
||||
@@ -71,7 +72,7 @@ fn purge_chain_works() {
|
||||
// Make sure that the `parachain_local_testnet` chain folder exists, but the `db` is deleted.
|
||||
assert!(base_path.path().join("chains/local_testnet").exists());
|
||||
assert!(!base_path.path().join("chains/local_testnet/db").exists());
|
||||
assert!(base_path.path().join("polkadot/chains/westend2").exists());
|
||||
assert!(!base_path.path().join("polkadot/chains/westend2/db").exists());
|
||||
// assert!(base_path.path().join("polkadot/chains/dev").exists());
|
||||
// assert!(!base_path.path().join("polkadot/chains/dev/db").exists());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@ mod common;
|
||||
|
||||
#[test]
|
||||
#[cfg(unix)]
|
||||
#[ignore]
|
||||
fn running_the_node_works_and_can_be_interrupted() {
|
||||
use nix::{
|
||||
sys::signal::{
|
||||
|
||||
Reference in New Issue
Block a user