mirror of
https://github.com/google/nomulus.git
synced 2025-07-10 21:23:22 +02:00
Add a 30s timeout for all webdriver tests (#161)
Sometimes, the webdriver tests get stuck forever for no reason. It could be some issue in the test container but it is hard to root cause it. So, adding a 30s timeout can either trigger the retry earlier or let the test just fail.
This commit is contained in:
parent
8dd6797614
commit
8371cb838c
1 changed files with 4 additions and 0 deletions
|
@ -17,6 +17,7 @@ package google.registry.webdriver;
|
|||
import google.registry.webdriver.RepeatableRunner.AttemptNumber;
|
||||
import org.junit.ClassRule;
|
||||
import org.junit.Rule;
|
||||
import org.junit.rules.Timeout;
|
||||
|
||||
/** Base class for tests that needs a {@link WebDriverPlusScreenDifferRule}. */
|
||||
public class WebDriverTestCase {
|
||||
|
@ -27,4 +28,7 @@ public class WebDriverTestCase {
|
|||
@Rule
|
||||
public final WebDriverPlusScreenDifferRule driver =
|
||||
new WebDriverPlusScreenDifferRule(webDriverProvider::getWebDriver, attemptNumber);
|
||||
|
||||
@Rule
|
||||
public final Timeout timeout = Timeout.seconds(30);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue