tests: fix three stale assertions
- 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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user