From b5cf150ac3679d875630e8f351754514a0dd0882 Mon Sep 17 00:00:00 2001 From: Sebastien Boeuf Date: Mon, 22 Jun 2020 17:17:01 +0200 Subject: [PATCH] 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 --- tests/integration.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/integration.rs b/tests/integration.rs index ad15f32e5..81966af87 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -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);