Skip to content

Commit e054ec5

Browse files
author
Zhen Li
committed
Removes time limit on waiting for reactive session run replies.
1 parent f9f773b commit e054ec5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

driver/src/test/java/org/neo4j/driver/stress/AbstractStressTestBase.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import java.lang.management.OperatingSystemMXBean;
3131
import java.lang.reflect.Method;
3232
import java.net.URI;
33-
import java.time.Duration;
3433
import java.util.ArrayList;
3534
import java.util.Arrays;
3635
import java.util.HashMap;
@@ -99,7 +98,6 @@ abstract class AbstractStressTestBase<C extends AbstractContext>
9998

10099
private static final int BIG_DATA_TEST_NODE_COUNT = Integer.getInteger( "bigDataTestNodeCount", 30_000 );
101100
private static final int BIG_DATA_TEST_BATCH_SIZE = Integer.getInteger( "bigDataTestBatchSize", 10_000 );
102-
private static final Duration DEFAULT_BLOCKING_TIME_OUT = Duration.ofMinutes( 10 );
103101

104102
private LoggerNameTrackingLogging logging;
105103
private ExecutorService executor;
@@ -638,7 +636,7 @@ private Bookmark createNodesRx( int batchCount, int batchSize, InternalDriver dr
638636

639637
Flux.concat( Flux.range( 0, batchCount ).map( batchIndex ->
640638
session.writeTransaction( tx -> createNodesInTxRx( tx, batchIndex, batchSize ) )
641-
) ).blockLast( DEFAULT_BLOCKING_TIME_OUT ); // throw any error if happened
639+
) ).blockLast(); // throw any error if happened
642640

643641
long end = System.nanoTime();
644642
System.out.println( "Node creation with reactive API took: " + NANOSECONDS.toMillis( end - start ) + "ms" );
@@ -673,7 +671,7 @@ private void readNodesRx( InternalDriver driver, Bookmark bookmark, int expected
673671
verifyNodeProperties( node );
674672
} ).then() );
675673

676-
Flux.from( readQuery ).blockLast( DEFAULT_BLOCKING_TIME_OUT );
674+
Flux.from( readQuery ).blockLast();
677675

678676
assertEquals( expectedNodeCount, nodesSeen.get() );
679677

0 commit comments

Comments
 (0)