From 943337db0d4e1283ed1f7e4a5ddff4c2e53ad59d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Stuczy=C5=84ski?= Date: Thu, 5 May 2022 16:13:04 +0200 Subject: [PATCH] Running tests with the same opt-level in CI, but preserving debug assertions (#1253) --- Cargo.toml | 3 ++- Makefile | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 481fb11321..ac68ef15a0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,8 @@ overflow-checks = true panic = "abort" [profile.test] -opt-level = 2 +# equivalent of running in `--release` (but since we're in test profile we're keeping overflow checks and all of those by default) +opt-level = 3 [workspace] diff --git a/Makefile b/Makefile index cabf711c99..3d87c659b5 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ clippy-all-wallet: cargo clippy --workspace --manifest-path nym-wallet/Cargo.toml --all-features -- -D warnings test-main: - cargo test --all-features --workspace --release + cargo test --all-features --workspace test-contracts: cargo test --manifest-path contracts/Cargo.toml --all-features