Eliminating 10-sec wait for a non-existing widget
If we want to ensure that a widget doesn't exist, it's sufficient to wait 100 ms Change-Id: I9982e89e1a376678df2271954ce177a90a6a579d
This commit is contained in:
parent
5ab7171b9a
commit
e1c0dda778
|
@ -192,7 +192,7 @@ public class BindWidgetTest extends AbstractLauncherUiTest {
|
|||
WidgetManagerHelper.WIDGET_OPTION_RESTORE_COMPLETED));
|
||||
executeOnLauncher(l -> l.getAppWidgetHost().startListening());
|
||||
verifyWidgetPresent(info);
|
||||
assertNull(mLauncher.getWorkspace().tryGetPendingWidget(DEFAULT_UI_TIMEOUT));
|
||||
assertNull(mLauncher.getWorkspace().tryGetPendingWidget(100));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Reference in New Issue