Skip to content

Commit 58a867b

Browse files
fix(test): install cli with --locked (#1877)
On the v1.4 branch we have switched to skipping the cargo install in the test itself and doing it ahead of time, so this is a temporary fix.
1 parent fff0d77 commit 58a867b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

crates/cli/tests/app_e2e.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use tempfile::tempdir;
1212
#[test]
1313
fn test_cli_app_e2e() -> Result<()> {
1414
let temp_dir = tempdir()?;
15-
run_cmd("cargo", &["install", "--path", ".", "--force"])?;
15+
run_cmd("cargo", &["install", "--path", ".", "--force", "--locked"])?;
1616
let exe_path = "tests/programs/fibonacci/target/openvm/release/openvm-cli-example-test.vmexe";
1717
let temp_pk = temp_dir.path().join("app.pk");
1818
let temp_vk = temp_dir.path().join("app.vk");
@@ -87,7 +87,7 @@ fn test_cli_app_e2e() -> Result<()> {
8787

8888
#[test]
8989
fn test_cli_app_e2e_simplified() -> Result<()> {
90-
run_cmd("cargo", &["install", "--path", ".", "--force"])?;
90+
run_cmd("cargo", &["install", "--path", ".", "--force", "--locked"])?;
9191
run_cmd(
9292
"cargo",
9393
&[
@@ -128,7 +128,7 @@ fn test_cli_init_build() -> Result<()> {
128128
let temp_path = temp_dir.path();
129129
let config_path = temp_path.join("openvm.toml");
130130
let manifest_path = temp_path.join("Cargo.toml");
131-
run_cmd("cargo", &["install", "--path", ".", "--force"])?;
131+
run_cmd("cargo", &["install", "--path", ".", "--force", "--locked"])?;
132132

133133
// Cargo will not respect patches if run within a workspace
134134
run_cmd(

0 commit comments

Comments
 (0)