OSDN Git Service

Reduce delays on Flicker test rotation
authorNataniel Borges <natanieljr@google.com>
Mon, 2 Sep 2019 14:37:01 +0000 (16:37 +0200)
committerNataniel Borges <natanieljr@google.com>
Wed, 18 Sep 2019 15:17:24 +0000 (17:17 +0200)
Flicker tests currently wait 3 seconds until the screen rotation have
been complete. This long delay may hide some issues. Reduce delay to 1
second.

Test: atest FlickerTests
Change-Id: I1646086018fac52c0751ff70fff1f5082fee4685

tests/FlickerTests/src/com/android/server/wm/flicker/CommonTransitions.java

index 0173b24..1d44ea4 100644 (file)
@@ -67,7 +67,7 @@ class CommonTransitions {
                     device.setOrientationNatural();
             }
             // Wait for animation to complete
-            sleep(3000);
+            sleep(1000);
         } catch (RemoteException e) {
             throw new RuntimeException(e);
         }