mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
main: Fix test_vmm_vm_cold_add_user_device
This test has a copy and paste error where the PCI segment ID was being set with no extra segments configured. Signed-off-by: Rob Bradford <rbradford@meta.com>
This commit is contained in:
@@ -2892,8 +2892,7 @@ mod unit_tests {
|
||||
#[test]
|
||||
fn test_vmm_vm_cold_add_user_device() {
|
||||
let mut vmm = create_dummy_vmm();
|
||||
let user_device_config =
|
||||
UserDeviceConfig::parse("socket=/path/to/socket,id=8,pci_segment=2").unwrap();
|
||||
let user_device_config = UserDeviceConfig::parse("socket=/path/to/socket,id=8").unwrap();
|
||||
|
||||
assert!(matches!(
|
||||
vmm.vm_add_user_device(user_device_config.clone()),
|
||||
|
||||
Reference in New Issue
Block a user