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 <david@gibson.dropbear.id.au>
This commit is contained in:
David Gibson 2021-11-05 17:28:27 +11:00
parent 89ff700038
commit b60622786d

View File

@ -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![(