Changed timeout for loading wind from igtimi due to a failure on hudson

This commit is contained in:
Steffen Schaefer committed 2017-04-05 12:56:37 +02:00
1 parent 1eb7a4da7d
commit 59d086864b
2 files changed
+3 -3

No files matched your search

@@ -22,12 +22,12 @@ public class WindPanelPO extends PageArea {
super(driver, element);
}
public void importWindFromIgtimi() throws InterruptedException {
public void importWindFromIgtimi(int timeoutInSeconds) throws InterruptedException {
importWindFromIgtimi.click();
waitForAlertAndAccept(10);
FluentWait<String> wait = createFluentWait("The following number of fixes were imported for the listed races:", /* waiting 10 minutes at most */ 10 * 60, DEFAULT_POLLING_INTERVAL);
FluentWait<String> wait = createFluentWait("The following number of fixes were imported for the listed races:", timeoutInSeconds, DEFAULT_POLLING_INTERVAL);
wait.until(new Function<String, Object>() {
@Override
public Object apply(String message) {
@@ -112,7 +112,7 @@ public class SimulatorOverlayTest extends AbstractSeleniumTest {
igtimiAccountsManagementPanel.addAccount(getIgtimiAccountUser(), getIgtimiAccountPassword());
WindPanelPO windPanel = adminConsole.goToWind();
windPanel.importWindFromIgtimi();
windPanel.importWindFromIgtimi(/* waiting up to 15 min */ 15 * 60);
// Retracking all races should not be necessary, but currently, polar data is only calculated when GPS fixes
// are recorded for a tracked race and not for wind fixes.