Increasing wait time for navigation mode switch.

Sometimes this fails in Cuttlefish.

Change-Id: Ifa2ffed5165625d51441fc3b203185fc55f7d53f
This commit is contained in:
vadimt
2019-10-04 17:12:26 -07:00
parent c3a4819b8c
commit d230af4e09

View File

@@ -181,7 +181,7 @@ public class NavigationModeSwitchRule implements TestRule {
SysUINavigationMode.INSTANCE.get(targetContext);
targetContext.getMainExecutor().execute(() ->
sysUINavigationMode.addModeChangeListener(listener));
latch.await(10, TimeUnit.SECONDS);
latch.await(60, TimeUnit.SECONDS);
targetContext.getMainExecutor().execute(() ->
sysUINavigationMode.removeModeChangeListener(listener));
assertTrue("Navigation mode didn't change to " + expectedMode,