[gnome-boxes/wip/automated-tests: 4/10] tests: Remove some redunant waits



commit 5d74b386de67470e340c5111966c1a3ab5fb3a6e
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Sun Feb 1 16:52:42 2015 +0000

    tests: Remove some redunant waits
    
    Reduce the amount of waiting for some steps and remove waiting all
    together for some steps.

 tests/livecd.feature    |    8 ++++----
 tests/steps/snapshot.py |    2 --
 2 files changed, 4 insertions(+), 6 deletions(-)
---
diff --git a/tests/livecd.feature b/tests/livecd.feature
index b2a3bfa..69d059a 100644
--- a/tests/livecd.feature
+++ b/tests/livecd.feature
@@ -8,9 +8,9 @@ Feature: LiceCD
   Scenario: New local liveCD box via file
     * Create new box from file "Downloads/Core-5.3.iso"
     * Press "Create"
-    * Wait for "sleep 10" end
+    * Wait for "sleep 3" end
     * Hit "Enter"
-    * Wait for "sleep 20" end
+    * Wait for "sleep 5" end
     * Save IP for machine "Core-5"
     * Press "back" in "Core-5" vm
     Then Box "Core-5" "does" exist
@@ -20,9 +20,9 @@ Feature: LiceCD
   Scenario: New local liveCD box
     * Create new box from menu "Core-5"
     * Press "Create"
-    * Wait for "sleep 10" end
+    * Wait for "sleep 3" end
     * Hit "Enter"
-    * Wait for "sleep 20" end
+    * Wait for "sleep 5" end
     * Save IP for machine "Core-5"
     * Press "back" in "Core-5" vm
     Then Box "Core-5" "does" exist
diff --git a/tests/steps/snapshot.py b/tests/steps/snapshot.py
index 4397cea..a46f4e6 100644
--- a/tests/steps/snapshot.py
+++ b/tests/steps/snapshot.py
@@ -68,7 +68,6 @@ def delete_snapshot(context, vm_name, snap_name):
     sleep(2)
 
     pressKey('Esc')
-    sleep(0.5)
 
 @step('Revert machine "{vm_name}" to state "{snap_name}"')
 def revert_snapshot(context, vm_name, snap_name):
@@ -84,4 +83,3 @@ def revert_snapshot(context, vm_name, snap_name):
     revert.click()
 
     pressKey('Esc')
-    sleep(0.5)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]