Skip to content

Commit b8cf968

Browse files
committed
wip
1 parent 2779ef3 commit b8cf968

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

testsuites/sail/src/main/java/org/eclipse/rdf4j/testsuite/sail/SailConcurrencyTest.java

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
import org.junit.jupiter.api.BeforeEach;
3939
import org.junit.jupiter.api.Disabled;
4040
import org.junit.jupiter.api.RepeatedTest;
41+
import org.junit.jupiter.api.Test;
4142
import org.junit.jupiter.api.Timeout;
4243
import org.slf4j.Logger;
4344
import org.slf4j.LoggerFactory;
@@ -157,9 +158,9 @@ public int getSize() {
157158
*
158159
* @see <a href="https://github.com/eclipse/rdf4j/issues/693">https://github.com/eclipse/rdf4j/issues/693</a>
159160
*/
160-
@Test
161+
// @Test
161162
@Timeout(value = 30, unit = TimeUnit.MINUTES)
162-
// @RepeatedTest(100)
163+
@RepeatedTest(100)
163164
public void testConcurrentAddLargeTxn() throws Exception {
164165
logger.info("executing two large concurrent transactions");
165166
final CountDownLatch runnersDone = new CountDownLatch(2);
@@ -200,9 +201,9 @@ public void testConcurrentAddLargeTxn() throws Exception {
200201
* Verifies that two large concurrent transactions in separate contexts do not cause inconsistencies or errors when
201202
* one of the transactions rolls back at the end.
202203
*/
203-
@Test
204+
// @Test
204205
@Timeout(value = 30, unit = TimeUnit.MINUTES)
205-
// @RepeatedTest(100)
206+
@RepeatedTest(100)
206207
public void testConcurrentAddLargeTxnRollback() throws Exception {
207208
logger.info("executing two large concurrent transactions");
208209
final CountDownLatch runnersDone = new CountDownLatch(2);
@@ -321,8 +322,8 @@ public void testGetContextIDs() throws Exception {
321322
}
322323
}
323324

324-
// @RepeatedTest(100)
325-
@Test
325+
@RepeatedTest(100)
326+
// @Test
326327
@Timeout(value = 30, unit = TimeUnit.MINUTES)
327328
public void testConcurrentConnectionsShutdown() throws InterruptedException {
328329
if (store instanceof AbstractSail) {
@@ -367,8 +368,8 @@ public void testConcurrentConnectionsShutdown() throws InterruptedException {
367368
}
368369

369370
// @Disabled
370-
// @RepeatedTest(100)
371-
@Test
371+
@RepeatedTest(100)
372+
// @Test
372373
@Timeout(value = 30, unit = TimeUnit.MINUTES)
373374
public void testSerialThreads() throws InterruptedException {
374375
if (store instanceof AbstractSail) {
@@ -449,8 +450,8 @@ public void testSerialThreads() throws InterruptedException {
449450

450451
}
451452

452-
// @RepeatedTest(100)
453-
@Test
453+
@RepeatedTest(100)
454+
// @Test
454455
@Timeout(value = 30, unit = TimeUnit.MINUTES)
455456
public void testConcurrentConnectionsShutdownReadCommitted() throws InterruptedException {
456457
if (store instanceof AbstractSail) {
@@ -506,8 +507,8 @@ public void testConcurrentConnectionsShutdownReadCommitted() throws InterruptedE
506507

507508
}
508509

509-
// @RepeatedTest(100)
510-
@Test
510+
@RepeatedTest(100)
511+
// @Test
511512
@Timeout(value = 30, unit = TimeUnit.MINUTES)
512513
public void testConcurrentConnectionsShutdownAndClose() throws InterruptedException {
513514
if (store instanceof AbstractSail) {
@@ -594,8 +595,8 @@ public void testConcurrentConnectionsShutdownAndClose() throws InterruptedExcept
594595
store.shutDown();
595596
}
596597

597-
// @RepeatedTest(100)
598-
@Test
598+
@RepeatedTest(1000)
599+
// @Test
599600
@Timeout(value = 30, unit = TimeUnit.MINUTES)
600601
public void testConcurrentConnectionsShutdownAndCloseRollback() throws InterruptedException {
601602
if (store instanceof AbstractSail) {

0 commit comments

Comments
 (0)