Skip to content

Commit aef48c1

Browse files
committed
Fix sync and async testkit backends launch (neo4j#1027)
1 parent 53f666d commit aef48c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testkit-backend/src/main/java/neo4j/org/testkit/backend/channel/handler/TestkitRequestProcessorHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ public TestkitRequestProcessorHandler( BackendMode backendMode )
5151
switch ( backendMode )
5252
{
5353
case ASYNC:
54-
processorImpl = TestkitRequestProcessorHandler::wrapSyncRequest;
54+
processorImpl = TestkitRequest::processAsync;
5555
break;
5656
case REACTIVE:
5757
processorImpl = ( request, state ) -> request.processRx( state ).toFuture();
5858
break;
5959
default:
60-
processorImpl = TestkitRequest::processAsync;
60+
processorImpl = TestkitRequestProcessorHandler::wrapSyncRequest;
6161
break;
6262
}
6363
}

0 commit comments

Comments
 (0)