From d77a40c46a88512e8f1254bdc559883b2e82f85a Mon Sep 17 00:00:00 2001 From: Josh Lind Date: Mon, 4 Nov 2024 09:27:52 -0500 Subject: [PATCH] [Unit tests] Use release mode. --- devtools/aptos-cargo-cli/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/devtools/aptos-cargo-cli/src/lib.rs b/devtools/aptos-cargo-cli/src/lib.rs index 4dea19a6ec0f94..4eb843f5256e42 100644 --- a/devtools/aptos-cargo-cli/src/lib.rs +++ b/devtools/aptos-cargo-cli/src/lib.rs @@ -472,6 +472,7 @@ fn run_targeted_unit_tests( // Create the command to run the unit tests let mut command = Cargo::command("nextest"); command.args(["run"]); + command.args(["--release"]); command.args(direct_args).pass_through(push_through_args); // Run the unit tests