Skip to content

Commit 60f7467

Browse files
author
ssambasu
committed
Increasing the test timeouts
1 parent 283431b commit 60f7467

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

test-complete/src/test/java/com/marklogic/client/datamovement/functionaltests/QBFailover.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ public void tearDown() throws Exception {
273273
clearDB(port);
274274
}
275275

276-
@Test(timeout = 300000)
276+
@Test(timeout = 400000)
277277
public void testStopOneNode() throws Exception {
278278
System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName());
279279
AtomicInteger success = new AtomicInteger(0);
@@ -308,7 +308,7 @@ public void testStopOneNode() throws Exception {
308308
assertEquals("document count", 0, failure.intValue());
309309
}
310310

311-
@Test(timeout = 300000)
311+
@Test(timeout = 400000)
312312
public void testRestart() throws Exception {
313313
System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName());
314314
AtomicInteger success = new AtomicInteger(0);
@@ -345,7 +345,7 @@ public void testRestart() throws Exception {
345345
assertEquals("document count", 0, failure.intValue());
346346
}
347347

348-
@Test(timeout = 300000)
348+
@Test(timeout = 400000)
349349
public void testRepeatedStopOneNode() throws Exception {
350350
System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName());
351351
AtomicInteger success = new AtomicInteger(0);
@@ -389,7 +389,7 @@ public void testRepeatedStopOneNode() throws Exception {
389389
assertEquals("document count", 0, failure.intValue());
390390
}
391391

392-
@Test(timeout = 300000)
392+
@Test(timeout = 400000)
393393
public void testMinNodes() throws Exception {
394394
System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName());
395395
AtomicInteger success = new AtomicInteger(0);
@@ -433,7 +433,7 @@ public void testMinNodes() throws Exception {
433433
Assert.assertTrue(success.intValue() < 20000);
434434
}
435435

436-
@Test(timeout = 300000)
436+
@Test(timeout = 400000)
437437
public void testStopTwoNodes() throws Exception {
438438
System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName());
439439
try {
@@ -476,7 +476,7 @@ public void testStopTwoNodes() throws Exception {
476476
}
477477
}
478478

479-
@Test(timeout = 300000)
479+
@Test(timeout = 400000)
480480
public void xQueryMasstransformReplace() throws Exception {
481481
System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName());
482482
ServerTransform transform = new ServerTransform("add-attr-xquery-transform");
@@ -546,7 +546,7 @@ public void xQueryMasstransformReplace() throws Exception {
546546

547547
}
548548

549-
@Test(timeout = 300000)
549+
@Test(timeout = 400000)
550550
public void xQueryMasstransformReplaceTwoNodes() throws Exception {
551551
System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName());
552552
ServerTransform transform = new ServerTransform("add-attr-xquery-transform");
@@ -618,7 +618,7 @@ public void xQueryMasstransformReplaceTwoNodes() throws Exception {
618618
assertEquals("document count", 0, skipped.intValue());
619619
}
620620

621-
@Test(timeout = 300000)
621+
@Test(timeout = 400000)
622622
public void xQueryMasstransformReplaceRepeated() throws Exception {
623623
System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName());
624624
ServerTransform transform = new ServerTransform("add-attr-xquery-transform");
@@ -696,7 +696,7 @@ public void xQueryMasstransformReplaceRepeated() throws Exception {
696696
assertEquals("document count", 0, failure.intValue());
697697
}
698698

699-
@Test(timeout = 300000)
699+
@Test(timeout = 400000)
700700
public void massDeleteConsistentSnapShot() throws Exception {
701701
System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName());
702702
AtomicBoolean isRunning = new AtomicBoolean(true);

test-complete/src/test/java/com/marklogic/client/datamovement/functionaltests/WBFailover.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ public void tearDown() throws Exception {
231231
clearDB(port);
232232
}
233233

234-
@Test(timeout = 200000)
234+
@Test(timeout = 300000)
235235
public void testBlackListHost() throws Exception {
236236
try {
237237
System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName());
@@ -276,7 +276,7 @@ public void testBlackListHost() throws Exception {
276276
}
277277
}
278278

279-
@Test(timeout = 200000)
279+
@Test(timeout = 300000)
280280
public void testStopOneNode() throws Exception {
281281
System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName());
282282
Assert.assertTrue(evalClient.newServerEval().xquery(query1).eval().next().getNumber().intValue() == 0);
@@ -321,7 +321,7 @@ public void testStopOneNode() throws Exception {
321321
Assert.assertTrue(evalClient.newServerEval().xquery(query1).eval().next().getNumber().intValue() == 50000);
322322
}
323323

324-
@Test(timeout = 200000)
324+
@Test(timeout = 300000)
325325
public void testRestart() throws Exception {
326326
System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName());
327327
Assert.assertTrue(evalClient.newServerEval().xquery(query1).eval().next().getNumber().intValue() == 0);
@@ -369,7 +369,7 @@ public void testRestart() throws Exception {
369369
Assert.assertTrue(evalClient.newServerEval().xquery(query1).eval().next().getNumber().intValue() == 20000);
370370
}
371371

372-
@Test(timeout = 200000)
372+
@Test(timeout = 300000)
373373
public void testRepeatedStopOneNode() throws Exception {
374374
System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName());
375375
try {
@@ -426,7 +426,7 @@ public void testRepeatedStopOneNode() throws Exception {
426426
}
427427
}
428428

429-
@Test(timeout = 200000)
429+
@Test(timeout = 300000)
430430
public void testStopTwoNodes() throws Exception {
431431
System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName());
432432
try {
@@ -485,7 +485,7 @@ public void testStopTwoNodes() throws Exception {
485485

486486
}
487487

488-
@Test(timeout = 200000)
488+
@Test(timeout = 300000)
489489
public void testMinHosts() throws Exception {
490490
System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName());
491491
final AtomicInteger successCount = new AtomicInteger(0);
@@ -528,7 +528,7 @@ public void testMinHosts() throws Exception {
528528
System.out.println("Ending min test");
529529
}
530530

531-
@Test(timeout = 200000)
531+
@Test(timeout = 300000)
532532
public void testWhiteBlackListNPE() throws Exception {
533533
System.out.println(Thread.currentThread().getStackTrace()[1].getMethodName());
534534
try {

0 commit comments

Comments
 (0)