From b37432b1f435f88e18eb7779fecfc33a6260cef3 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Wed, 9 Jul 2025 23:33:30 +0100 Subject: Fix tests after boxed slices --- src/config.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/config.rs b/src/config.rs index 97b438f..2ba10ec 100644 --- a/src/config.rs +++ b/src/config.rs @@ -351,6 +351,7 @@ mod tests { Program::new(vec!["/bin/program2", "arg"]), Program::new(vec!["/bin/program3", "arg"]), ] + .into() ); assert_eq!(route_map.qos, Some(QoS::ExactlyOnce)); @@ -361,6 +362,7 @@ mod tests { Program::new(vec!["/bin/program4", "arg"]), Program::new_with_timeout(vec!["/bin/program5"], Duration::from_secs_f64(1.2)), ] + .into() ); assert_eq!(route_seq.qos, None); } @@ -394,6 +396,7 @@ mod tests { Program::new(vec!["/foo/bar"]), Program::new(vec!["/baz/qux", "arg"]) ] + .into() ); assert_eq!(route.qos, None); } @@ -411,14 +414,14 @@ mod tests { let route_with_qos = config.routes.get("topic/with_qos").unwrap(); assert_eq!( route_with_qos.programs, - vec![Program::new(vec!["/foo/bar", "arg"])] + vec![Program::new(vec!["/foo/bar", "arg"])].into() ); assert_eq!(route_with_qos.qos, Some(QoS::AtLeastOnce)); let route_without_qos = config.routes.get("topic/without_qos").unwrap(); assert_eq!( route_without_qos.programs, - vec![Program::new(vec!["/baz/qux"])] + vec![Program::new(vec!["/baz/qux"])].into() ); assert_eq!(route_without_qos.qos, None); } -- cgit v1.2.3-70-g09d2