From b60622786d0275028fedf4ae4645cf840cecf3fc Mon Sep 17 00:00:00 2001 From: David Gibson Date: Fri, 5 Nov 2021 17:28:27 +1100 Subject: [PATCH] agent/device: Correct misleading comment on test case We have a test case commented as testing the case where linux.devices is empty in the OCI spec. While it's true that linux.devices is empth in this example, the reason it fails isn't specifically because it's empty but because it doesn't contain a device for the update we're trying to apply. Signed-off-by: David Gibson --- src/agent/src/device.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agent/src/device.rs b/src/agent/src/device.rs index 16bae152c..0994a3e2d 100644 --- a/src/agent/src/device.rs +++ b/src/agent/src/device.rs @@ -845,7 +845,7 @@ mod tests { spec.linux = Some(Linux::default()); - // linux.devices is empty + // linux.devices doesn't contain the updated device let res = update_spec_devices( &mut spec, HashMap::from_iter(vec![(