Github user prabhjyotsingh commented on the pull request: https://github.com/apache/incubator-zeppelin/pull/546#issuecomment-165412030 Sorry, for late reply, but, originally "waitForParagraph" had a 60sec delay, which now has decreased to 30sec. Can we increase it back to 60? diff --git a/zeppelin-server/src/test/java/org/apache/zeppelin/ZeppelinIT.java b/zeppelin-server/src/test/java/org/apache/zeppelin/ZeppelinIT.java index 47caaa3..2a32c9c 100644 --- a/zeppelin-server/src/test/java/org/apache/zeppelin/ZeppelinIT.java +++ b/zeppelin-server/src/test/java/org/apache/zeppelin/ZeppelinIT.java @@ -65,6 +65,7 @@ import com.google.common.base.Function; public class ZeppelinIT { private static final Logger LOG = LoggerFactory.getLogger(ZeppelinIT.class); private static final long MAX_BROWSER_TIMEOUT_SEC = 30; + private static final long MAX_PARAGRAPH_TIMEOUT_SEC = 60; private WebDriver driver; private void setWebDriver() { @@ -112,7 +113,7 @@ public class ZeppelinIT { while (System.currentTimeMillis() - start < 60 * 1000) { try { // wait for page load - WebElement element = pollingWait(By.partialLinkText("Create new note")); + WebElement element = pollingWait(By.partialLinkText("Create new note"), MAX_BROWSER_TIMEOUT_SEC); loaded = element.isDisplayed(); break; } catch (TimeoutException e) { @@ -149,22 +150,22 @@ public class ZeppelinIT { boolean waitForParagraph(final int paragraphNo, final String state) { By locator = By.xpath(getParagraphXPath(paragraphNo) + "//div[contains(@class, 'control')]//span[1][contains(.,'" + state + "')]"); - WebElement element = pollingWait(locator); + WebElement element = pollingWait(locator, MAX_PARAGRAPH_TIMEOUT_SEC); return element.isDisplayed(); } boolean waitForText(final String txt, final By locator) { try { - WebElement element = pollingWait(locator); + WebElement element = pollingWait(locator, MAX_BROWSER_TIMEOUT_SEC);
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---