mirror of
https://github.com/containers/youki
synced 2025-04-30 13:20:17 +02:00
fix tests of oci_spec.
This commit is contained in:
parent
78700b0a68
commit
3fdf35cd11
@ -13,18 +13,18 @@ fn serialize_and_deserialize_spec() {
|
||||
fn test_linux_device_cgroup_to_string() {
|
||||
let ldc = LinuxDeviceCgroup {
|
||||
allow: true,
|
||||
typ: LinuxDeviceType::A,
|
||||
typ: Some(LinuxDeviceType::A),
|
||||
major: None,
|
||||
minor: None,
|
||||
access: "rwm".into(),
|
||||
access: Some("rwm".into()),
|
||||
};
|
||||
assert_eq!(ldc.to_string(), "a *:* rwm");
|
||||
let ldc = LinuxDeviceCgroup {
|
||||
allow: true,
|
||||
typ: LinuxDeviceType::A,
|
||||
typ: Some(LinuxDeviceType::A),
|
||||
major: Some(1),
|
||||
minor: Some(9),
|
||||
access: "rwm".into(),
|
||||
access: Some("rwm".into()),
|
||||
};
|
||||
assert_eq!(ldc.to_string(), "a 1:9 rwm");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user