tests: fix three stale assertions
CI / Build & test (Windows) (push) Failing after 13m15s
CI / Build & test (Linux) (push) Successful in 24m22s

- multicamnode: type_id() assertions called the method on dyn
  NodeBehavior, which method resolution routed to std::any::Any's
  TypeId::of — qualify via NodeBehavior::type_id so the trait method
  (the &str node type id) is compared
- procpool: the per-worker GPU budget grew a security headroom (×2)
  for the CUDA-OOM flood; the two budget tests now assert against the
  real formula (2 GiB + 256 MiB at 1080p24, 2 workers at 4K/24 GiB)
- cli info fixture: the fixture runs 29.97 fps; the assertion expected
  30/1 (stale from the older fixture)
This commit is contained in:
2026-09-02 12:34:39 +08:00
parent 1ab1c29df4
commit 6153a2ac33
3 changed files with 17 additions and 24 deletions
+2 -2
View File
@@ -421,7 +421,7 @@ mod tests {
#[test]
fn create_wires_inputs() {
let (core, behavior) = create();
assert_eq!(behavior.type_id(), "org.olivevideoeditor.Olive.multicam");
assert_eq!(NodeBehavior::type_id(&*behavior), "org.olivevideoeditor.Olive.multicam");
assert_eq!(
core.get_input(CURRENT_INPUT).unwrap().value_type,
ValueType::Combo
@@ -570,7 +570,7 @@ mod tests {
sequence: Some(seq),
};
let copy = node.duplicate(&NodeCore::new()).unwrap();
assert_eq!(copy.type_id(), "org.olivevideoeditor.Olive.multicam");
assert_eq!(NodeBehavior::type_id(&*copy), "org.olivevideoeditor.Olive.multicam");
let down = copy
.as_any()
.unwrap()