|
37 | 37 | import org.junit.jupiter.api.BeforeEach; |
38 | 38 | import org.junit.jupiter.api.Disabled; |
39 | 39 | import org.junit.jupiter.api.Test; |
| 40 | +import org.junit.jupiter.api.Timeout; |
40 | 41 | import org.slf4j.Logger; |
41 | 42 | import org.slf4j.LoggerFactory; |
42 | 43 |
|
@@ -155,6 +156,7 @@ public int getSize() { |
155 | 156 | * @see <a href="https://github.com/eclipse/rdf4j/issues/693">https://github.com/eclipse/rdf4j/issues/693</a> |
156 | 157 | */ |
157 | 158 | @Test |
| 159 | + @Timeout(value = 30, unit = TimeUnit.MINUTES) |
158 | 160 | public void testConcurrentAddLargeTxn() throws Exception { |
159 | 161 | logger.info("executing two large concurrent transactions"); |
160 | 162 | final CountDownLatch runnersDone = new CountDownLatch(2); |
@@ -196,6 +198,7 @@ public void testConcurrentAddLargeTxn() throws Exception { |
196 | 198 | * one of the transactions rolls back at the end. |
197 | 199 | */ |
198 | 200 | @Test |
| 201 | + @Timeout(value = 30, unit = TimeUnit.MINUTES) |
199 | 202 | public void testConcurrentAddLargeTxnRollback() throws Exception { |
200 | 203 | logger.info("executing two large concurrent transactions"); |
201 | 204 | final CountDownLatch runnersDone = new CountDownLatch(2); |
@@ -237,6 +240,7 @@ public void testConcurrentAddLargeTxnRollback() throws Exception { |
237 | 240 | } |
238 | 241 |
|
239 | 242 | @Test |
| 243 | + @Timeout(value = 30, unit = TimeUnit.MINUTES) |
240 | 244 | @Disabled("This test takes a long time and accomplishes little extra") |
241 | 245 | public void testGetContextIDs() throws Exception { |
242 | 246 | // Create one thread which writes statements to the repository, on a |
@@ -314,6 +318,7 @@ public void testGetContextIDs() throws Exception { |
314 | 318 | } |
315 | 319 |
|
316 | 320 | @Test |
| 321 | + @Timeout(value = 30, unit = TimeUnit.MINUTES) |
317 | 322 | public void testConcurrentConnectionsShutdown() throws InterruptedException { |
318 | 323 | if (store instanceof AbstractSail) { |
319 | 324 | ((AbstractSail) store).setConnectionTimeOut(200); |
@@ -356,8 +361,9 @@ public void testConcurrentConnectionsShutdown() throws InterruptedException { |
356 | 361 |
|
357 | 362 | } |
358 | 363 |
|
359 | | -// @Disabled |
| 364 | + // @Disabled |
360 | 365 | @Test |
| 366 | + @Timeout(value = 30, unit = TimeUnit.MINUTES) |
361 | 367 | public void testSerialThreads() throws InterruptedException { |
362 | 368 | if (store instanceof AbstractSail) { |
363 | 369 | ((AbstractSail) store).setConnectionTimeOut(200); |
@@ -438,6 +444,7 @@ public void testSerialThreads() throws InterruptedException { |
438 | 444 | } |
439 | 445 |
|
440 | 446 | @Test |
| 447 | + @Timeout(value = 30, unit = TimeUnit.MINUTES) |
441 | 448 | public void testConcurrentConnectionsShutdownReadCommitted() throws InterruptedException { |
442 | 449 | if (store instanceof AbstractSail) { |
443 | 450 | ((AbstractSail) store).setConnectionTimeOut(200); |
@@ -493,6 +500,7 @@ public void testConcurrentConnectionsShutdownReadCommitted() throws InterruptedE |
493 | 500 | } |
494 | 501 |
|
495 | 502 | @Test |
| 503 | + @Timeout(value = 30, unit = TimeUnit.MINUTES) |
496 | 504 | public void testConcurrentConnectionsShutdownAndClose() throws InterruptedException { |
497 | 505 | if (store instanceof AbstractSail) { |
498 | 506 | ((AbstractSail) store).setConnectionTimeOut(200); |
@@ -568,6 +576,7 @@ public void testConcurrentConnectionsShutdownAndClose() throws InterruptedExcept |
568 | 576 | } |
569 | 577 |
|
570 | 578 | @Test |
| 579 | + @Timeout(value = 30, unit = TimeUnit.MINUTES) |
571 | 580 | public void testConcurrentConnectionsShutdownAndCloseRollback() throws InterruptedException { |
572 | 581 | if (store instanceof AbstractSail) { |
573 | 582 | ((AbstractSail) store).setConnectionTimeOut(200); |
|
0 commit comments