tests: use basic_regular_guest macro in test_virtio_vsock

Replace manual UbuntuDiskConfig and GuestFactory guest
creation with the basic_regular_guest! macro in
test_virtio_vsock for consistency and reduced boilerplate.

Signed-off-by: Muminul Islam <muislam@microsoft.com>
This commit is contained in:
Muminul Islam
2026-03-21 17:35:53 -07:00
committed by Rob Bradford
parent a6724ba79f
commit b9c9e7265d

View File

@@ -2724,8 +2724,7 @@ mod common_parallel {
#[test]
fn test_virtio_vsock() {
let disk_config = UbuntuDiskConfig::new(JAMMY_IMAGE_NAME.to_string());
let guest = GuestFactory::new_regular_guest_factory().create_guest(Box::new(disk_config));
let guest = basic_regular_guest!(JAMMY_IMAGE_NAME);
_test_virtio_vsock(&guest, false);
}