From f6829561e59858c3a9c1415a62298cc8b48a952d Mon Sep 17 00:00:00 2001 From: Muminul Islam Date: Sat, 28 Feb 2026 16:19:10 -0800 Subject: [PATCH] tests: Use GuestFactory in CVM simple launch test Replace manual Guest field assignments with GuestFactory::new_confidential_guest_factory() in test_focal_simple_launch for consistent CVM guest creation. Signed-off-by: Muminul Islam --- cloud-hypervisor/tests/integration.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cloud-hypervisor/tests/integration.rs b/cloud-hypervisor/tests/integration.rs index 4c00f63d5..01bd9a4dd 100644 --- a/cloud-hypervisor/tests/integration.rs +++ b/cloud-hypervisor/tests/integration.rs @@ -14555,10 +14555,9 @@ mod common_cvm { #[test] fn test_focal_simple_launch() { let disk_config = UbuntuDiskConfig::new(FOCAL_IMAGE_NAME.to_string()); - let guest = Guest::new(Box::new(disk_config)); - guest.vm_type = GuestVmType::Confidential; - guest.boot_timeout = DEFAULT_CVM_TCP_LISTENER_TIMEOUT; - guest.nested = false; + let guest = + GuestFactory::new_confidential_guest_factory().create_guest(Box::new(disk_config)); + _test_simple_launch(&guest) }