Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Disable integration tests outside of CI (#565)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkchr authored Aug 7, 2021
1 parent 6283c1f commit 8307255
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions client/network/tests/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions client/pov-recovery/tests/pov_recovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions polkadot-parachains/tests/polkadot_argument_parsing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ mod common;

#[test]
#[cfg(unix)]
#[ignore]
fn polkadot_argument_parsing() {
use nix::{
sys::signal::{
Expand Down
1 change: 1 addition & 0 deletions polkadot-parachains/tests/polkadot_mdns_issue.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ mod common;

#[test]
#[cfg(unix)]
#[ignore]
fn interrupt_polkadot_mdns_issue_test() {
use nix::{
sys::signal::{
Expand Down
9 changes: 5 additions & 4 deletions polkadot-parachains/tests/purge_chain_works.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ mod common;

#[test]
#[cfg(unix)]
#[ignore]
fn purge_chain_works() {
fn run_node_and_stop() -> tempfile::TempDir {
use nix::{
Expand All @@ -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();

Expand All @@ -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"])
Expand All @@ -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());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ mod common;

#[test]
#[cfg(unix)]
#[ignore]
fn running_the_node_works_and_can_be_interrupted() {
use nix::{
sys::signal::{
Expand Down
1 change: 1 addition & 0 deletions test/service/tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions test/service/tests/runtime_upgrade.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8307255

Please sign in to comment.