From ad94af4f58b44bdab873a06cc5cf4376dcf770ae Mon Sep 17 00:00:00 2001 From: andrew Date: Fri, 22 Apr 2022 12:40:28 +0300 Subject: [PATCH 1/2] Move extrinsics integration test --- src/cmd/extrinsics/mod.rs | 4 ---- .../extrinsics/integration_tests.rs => tests/extrinsics.rs | 0 2 files changed, 4 deletions(-) rename src/cmd/extrinsics/integration_tests.rs => tests/extrinsics.rs (100%) diff --git a/src/cmd/extrinsics/mod.rs b/src/cmd/extrinsics/mod.rs index 9c4fbbeb..934c65de 100644 --- a/src/cmd/extrinsics/mod.rs +++ b/src/cmd/extrinsics/mod.rs @@ -21,10 +21,6 @@ mod runtime_api; mod transcode; mod upload; -#[cfg(test)] -#[cfg(feature = "integration-tests")] -mod integration_tests; - use anyhow::{ anyhow, Context, diff --git a/src/cmd/extrinsics/integration_tests.rs b/tests/extrinsics.rs similarity index 100% rename from src/cmd/extrinsics/integration_tests.rs rename to tests/extrinsics.rs -- GitLab From 1bd1fb73528408d13bf3b0c6c28fff867954ebe5 Mon Sep 17 00:00:00 2001 From: andrew Date: Fri, 22 Apr 2022 12:49:21 +0300 Subject: [PATCH 2/2] Release build and skip linting --- tests/extrinsics.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/extrinsics.rs b/tests/extrinsics.rs index 9e01a7ac..eea23973 100644 --- a/tests/extrinsics.rs +++ b/tests/extrinsics.rs @@ -167,6 +167,8 @@ async fn build_upload_instantiate_call() { log::info!("Building contract in {}", project_path.to_string_lossy()); cargo_contract(project_path.as_path()) .arg("build") + .arg("--release") + .arg("--skip-linting") .assert() .success(); -- GitLab