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:
vadimt 2020-07-23 16:05:02 -07:00 committed by Vadim Tryshev
parent 5ab7171b9a
commit e1c0dda778
1 changed files with 1 additions and 1 deletions

View File

@ -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