Skip to content
Snippets Groups Projects
Commit 1866657e authored by Bastian Köcher's avatar Bastian Köcher Committed by GitHub
Browse files

Disable integration tests outside of CI (#565)

parent e8dfb9b5
No related merge requests found
......@@ -91,7 +91,7 @@ test-linux-stable:
# but still want to have debug assertions.
RUSTFLAGS: "-Cdebug-assertions=y -Dwarnings"
script:
- time cargo test --all --release --locked
- time cargo test --all --release --locked -- --include-ignored
# It's almost free to produce a binary here, please refrain from using it in production since
# it goes with the debug assertions.
- if [ "${ARE_WE_RELEASING_YET}" ]; then
......
......@@ -20,6 +20,7 @@ use futures::join;
use sc_service::TaskExecutor;
#[substrate_test_utils::test]
#[ignore]
async fn sync_blocks_from_tip_without_being_connected_to_a_collator(task_executor: TaskExecutor) {
let mut builder = sc_cli::LoggerBuilder::new("");
builder.with_colors(false);
......
......@@ -26,6 +26,7 @@ use std::sync::Arc;
/// the parachain network, we need to recover the PoV from the relay chain. Using this PoV we can
/// recover the block, import it and share it with the other nodes of the parachain network.
#[substrate_test_utils::test]
#[ignore]
async fn pov_recovery(task_executor: TaskExecutor) {
let mut builder = sc_cli::LoggerBuilder::new("");
builder.with_colors(false);
......
......@@ -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::{
......
......@@ -20,6 +20,7 @@ use futures::join;
use sc_service::TaskExecutor;
#[substrate_test_utils::test]
#[ignore]
async fn test_collating_and_non_collator_mode_catching_up(task_executor: TaskExecutor) {
let mut builder = sc_cli::LoggerBuilder::new("");
builder.with_colors(false);
......
......@@ -22,6 +22,7 @@ use sp_runtime::generic::BlockId;
use sc_client_api::BlockchainEvents;
#[substrate_test_utils::test]
#[ignore]
async fn test_runtime_upgrade(task_executor: TaskExecutor) {
let mut builder = sc_cli::LoggerBuilder::new("runtime=debug");
builder.with_colors(false);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment