Skip to content

Commit 5146b50

Browse files
author
innokenty
committed
increase timeout in quota reload test
1 parent 67f88f5 commit 5146b50

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

proxy/src/test/java/ru/qatools/gridrouter/QuotaReloadTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,17 @@ public void testQuotaIsReloadedOnFileChange() throws Exception {
4141
replacePortInQuotaFile(USER_1, HUB_PORT_2);
4242
Thread.sleep(5000); // just to avoid multiple exceptions in the logs
4343
assertThat(USER_1, should(canObtain(firefox()))
44-
.whileWaitingUntil(timeoutHasExpired().withPollingInterval(SECONDS.toMillis(3))));
44+
.whileWaitingUntil(timeoutHasExpired(SECONDS.toMillis(60))
45+
.withPollingInterval(SECONDS.toMillis(3))));
4546
}
4647

4748
@Test
4849
public void testNewQuotaFileIsLoaded() throws Exception {
4950
copyQuotaFile(USER_1, USER_4, HUB_PORT_2);
5051
Thread.sleep(5000); // just to avoid multiple exceptions in the logs
5152
assertThat(USER_4, should(canObtain(firefox()))
52-
.whileWaitingUntil(timeoutHasExpired().withPollingInterval(SECONDS.toMillis(3))));
53+
.whileWaitingUntil(timeoutHasExpired(SECONDS.toMillis(60))
54+
.withPollingInterval(SECONDS.toMillis(3))));
5355
}
5456

5557
@After

0 commit comments

Comments
 (0)