mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 13:45:20 +00:00
ci: Update test_snapshot_restore by resuming the VM
Now that snapshot/restore is symmetrical, that is the VM must be paused before it is snapshot and it must be resumed after it's been restored, the integration test is updated accordingly. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
parent
e382dc6657
commit
b5cf150ac3
@ -4629,6 +4629,9 @@ mod tests {
|
||||
// Wait for the VM to be restored
|
||||
thread::sleep(std::time::Duration::new(10, 0));
|
||||
|
||||
// Resume the VM
|
||||
aver!(tb, remote_command(&api_socket, "resume", None));
|
||||
|
||||
// Perform same checks to validate VM has been properly restored
|
||||
aver_eq!(tb, guest.get_cpu_count().unwrap_or_default(), 1);
|
||||
aver!(tb, guest.get_total_memory().unwrap_or_default() > 3_968_000);
|
||||
|
Loading…
Reference in New Issue
Block a user