Watch
0
0
Fork
You've already forked hyperhive
0

bash OOM order: subagent test expects 900, const asserts for clippy

This commit is contained in:
maia 2026-11-19 05:10:54 +01:00 • committed by mara
commit 22105fe423

View file

@ -2733,7 +2733,7 @@ mod tests {
#[test]
fn a_subagent_run_is_killed_after_a_bash_task_and_before_the_session() {
assert_eq!(RUN_OOM_SCORE_ADJ, 900);
assert!(RUN_OOM_SCORE_ADJ < run_cgroup::BASH_TASK_OOM_SCORE_ADJ);
const { assert!(RUN_OOM_SCORE_ADJ < run_cgroup::BASH_TASK_OOM_SCORE_ADJ) };
}
// `Cancel` can only be constructed from a real spawned process (no test
@ -5562,7 +5562,7 @@ echo '{"type":"result","subtype":"success","is_error":false}'
);
assert_eq!(
env_of(&config.env, "HIVE_RUN_ENTRY_OOM_SCORE_ADJ"),
Some("1000")
Some("900")
);
assert_eq!(env_of(&config.env, "HIVE_RUN_ENTRY_CGROUP"), None);
@ -5586,7 +5586,7 @@ echo '{"type":"result","subtype":"success","is_error":false}'
.env
.get("HIVE_RUN_ENTRY_OOM_SCORE_ADJ")
.map(String::as_str),
Some("1000")
Some("900")
);
}