vmm: remove redundant tests

These are all duplicates.

Signed-off-by: Alyssa Ross <hi@alyssa.is>
This commit is contained in:
Alyssa Ross 2024-01-17 23:53:38 +01:00 committed by Rob Bradford
parent 7ae46e9b61
commit 4ae5503b58

View File

@ -2868,20 +2868,6 @@ mod tests {
..Default::default() ..Default::default()
} }
); );
assert_eq!(
DiskConfig::parse("path=/path/to_file")?,
DiskConfig {
path: Some(PathBuf::from("/path/to_file")),
..Default::default()
}
);
assert_eq!(
DiskConfig::parse("path=/path/to_file")?,
DiskConfig {
path: Some(PathBuf::from("/path/to_file")),
..Default::default()
}
);
assert_eq!( assert_eq!(
DiskConfig::parse("path=/path/to_file,serial=test")?, DiskConfig::parse("path=/path/to_file,serial=test")?,
DiskConfig { DiskConfig {
@ -3016,14 +3002,6 @@ mod tests {
..Default::default() ..Default::default()
} }
); );
assert_eq!(
FsConfig::parse("tag=mytag,socket=/tmp/sock")?,
FsConfig {
socket: PathBuf::from("/tmp/sock"),
tag: "mytag".to_owned(),
..Default::default()
}
);
assert_eq!( assert_eq!(
FsConfig::parse("tag=mytag,socket=/tmp/sock,num_queues=4,queue_size=1024")?, FsConfig::parse("tag=mytag,socket=/tmp/sock,num_queues=4,queue_size=1024")?,
FsConfig { FsConfig {