hive-forge: format the assign-reviewer test and document the --remove failure
This commit is contained in:
parent
ff4fd93f81
commit
7c10b79677
2 changed files with 14 additions and 3 deletions
|
|
@ -76,7 +76,15 @@ fn remove_argus(tag: &str, requested: &'static [&'static str]) -> (bool, String,
|
|||
}
|
||||
});
|
||||
let out = Command::new(env!("CARGO_BIN_EXE_hive-forge"))
|
||||
.args(["-r", "o/r", "pr", "assign-reviewer", "7", "argus", "--remove"])
|
||||
.args([
|
||||
"-r",
|
||||
"o/r",
|
||||
"pr",
|
||||
"assign-reviewer",
|
||||
"7",
|
||||
"argus",
|
||||
"--remove",
|
||||
])
|
||||
.env("HIVE_FORGE_URL", format!("http://{addr}"))
|
||||
.env("HYPERHIVE_STATE_DIR", scratch_state_dir(tag))
|
||||
.env_remove("HIVE_FORGE_TOKEN_FILE")
|
||||
|
|
@ -102,5 +110,8 @@ fn withdrawal_that_left_the_reviewer_listed_is_reported_as_failed() {
|
|||
fn withdrawal_that_removed_the_reviewer_is_reported_as_done() {
|
||||
let (ok, stdout, stderr) = remove_argus("removed", &["review-classifier"]);
|
||||
assert!(ok, "{stderr}");
|
||||
assert!(stdout.contains("review request withdrawn: argus on #7"), "{stdout}");
|
||||
assert!(
|
||||
stdout.contains("review request withdrawn: argus on #7"),
|
||||
"{stdout}"
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue