Skip to content

Commit c54fa83

Browse files
committed
try to make more stable
1 parent fd0a504 commit c54fa83

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/test/java/org/htmlunit/libraries/DojoTestBase.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
import static org.junit.Assert.fail;
1818

19+
import java.time.Duration;
1920
import java.util.List;
2021

2122
import org.apache.commons.lang3.StringUtils;
@@ -66,7 +67,7 @@ void test(final String module, final long waitTime) throws Exception {
6667
final WebDriver webdriver = getWebDriver();
6768
webdriver.get(getUrl(module));
6869

69-
final long runTime = waitTime * DEFAULT_WAIT_TIME.toMillis();
70+
final long runTime = waitTime * Duration.ofSeconds(1).toMillis();
7071
final long endTime = System.currentTimeMillis() + runTime;
7172

7273
// wait a bit to let the tests start
@@ -90,7 +91,7 @@ void test(final String module, final long waitTime) throws Exception {
9091
status = getResultElementText(webdriver);
9192
}
9293

93-
Thread.sleep(100); // to make tests a bit more stable
94+
Thread.sleep(Duration.ofSeconds(1).toMillis()); // to make tests a bit more stable
9495
final WebElement output = webdriver.findElement(By.id("logBody"));
9596
final List<WebElement> lines = output.findElements(By.xpath(".//div"));
9697

0 commit comments

Comments
 (0)