File tree Expand file tree Collapse file tree 5 files changed +2
-20
lines changed
main/java/org/neo4j/driver/internal
test/java/org/neo4j/driver/v1/integration Expand file tree Collapse file tree 5 files changed +2
-20
lines changed Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ private Throwable extractFailure()
236236 {
237237 if ( failure == null )
238238 {
239- throw new IllegalStateException ( "Can't consume failure because it does not exist" );
239+ throw new IllegalStateException ( "Can't extract failure because it does not exist" );
240240 }
241241
242242 Throwable error = failure ;
Original file line number Diff line number Diff line change 2626import java .util .concurrent .ExecutionException ;
2727import java .util .concurrent .Future ;
2828
29- import static java .util .concurrent .CompletableFuture .completedFuture ;
30-
3129public final class Futures
3230{
3331 private Futures ()
@@ -118,16 +116,4 @@ public static Throwable completionErrorCause( Throwable error )
118116 }
119117 return error ;
120118 }
121-
122- public static <T > CompletionStage <T > firstNotNull ( CompletionStage <T > stage1 , CompletionStage <T > stage2 )
123- {
124- return stage1 .thenCompose ( value ->
125- {
126- if ( value != null )
127- {
128- return completedFuture ( value );
129- }
130- return stage2 ;
131- } );
132- }
133119}
Original file line number Diff line number Diff line change @@ -726,7 +726,6 @@ public void shouldBeginTxAfterRunFailureToAcquireConnection()
726726 }
727727
728728 @ Test
729- <<<<<<<HEAD
730729 public void shouldExecuteReadTransactionUntilSuccessWhenWorkThrows ()
731730 {
732731 int maxFailures = 1 ;
Original file line number Diff line number Diff line change @@ -1119,8 +1119,7 @@ public void shouldExecuteTransactionWorkInCallerThread()
11191119 int maxFailures = 3 ;
11201120 Thread callerThread = Thread .currentThread ();
11211121
1122- try ( Driver driver = newDriver ();
1123- Session session = driver .session () )
1122+ try ( Session session = neo4j .driver ().session () )
11241123 {
11251124 String result = session .readTransaction ( new TransactionWork <String >()
11261125 {
Original file line number Diff line number Diff line change @@ -969,8 +969,6 @@ public void shouldFailToCommitWhenQueriesFailAndErrorNotConsumed() throws Interr
969969 tx .runAsync ( "RETURN 10 / 0" );
970970 tx .runAsync ( "CREATE (:TestNode)" );
971971
972- Thread .sleep ( 1000 );
973-
974972 try
975973 {
976974 getBlocking ( tx .commitAsync () );
You can’t perform that action at this time.
0 commit comments