RuffyScripter.verifyMenuIsDisplayed: don't call waitForMenuUpdate, menu should already be displayed. If not, wait up to 1 second.

This commit is contained in:
Johannes Mockenhaupt 2017-07-16 17:11:32 +02:00
parent ccffa3bfca
commit c131280e91
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -77,7 +77,7 @@ public class RuffyScripter {
// converted into a command failure, but it's not classified as unrecoverable;
// eventually we might try to recover ... check docs, there's also another
// execption we should watch interacting with a remote service.
unrecoverableError = "Ruffy went away";
unrecoverableError = "Ruffy service went away";
} catch (RemoteException e) {
log.debug("Exception in idle disconnect monitor thread, carrying on", e);
}
@ -350,7 +350,6 @@ public class RuffyScripter {
}
public void verifyMenuIsDisplayed(MenuType expectedMenu, String failureMessage) {
waitForMenuUpdate();
int retries = 5;
while (currentMenu.getType() != expectedMenu) {
if (retries > 0) {