Skip to content

Commit

Permalink
remove an unnecessary cargo build in bao_bin tests
Browse files Browse the repository at this point in the history
  • Loading branch information
oconnor663 committed Nov 3, 2024
1 parent d7fed73 commit 05a3880
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions bao_bin/tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,9 @@ use duct::cmd;
use rand::prelude::*;
use std::fs;
use std::path::PathBuf;
use std::sync::Once;
use tempfile::tempdir;

pub fn bao_exe() -> PathBuf {
// `cargo test` doesn't automatically run `cargo build`, so we do that ourselves.
static CARGO_BUILD_ONCE: Once = Once::new();
CARGO_BUILD_ONCE.call_once(|| {
cmd!("cargo", "build", "--quiet")
.run()
.expect("build failed");
});

assert_cmd::cargo::cargo_bin("bao")
}

Expand Down

0 comments on commit 05a3880

Please sign in to comment.