Skip to content

Commit 1196fb4

Browse files
committed
Potential fix
Signed-off-by: Emmanuel Hugonnet <[email protected]>
1 parent 2513ecc commit 1196fb4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

transport/jsonrpc/src/test/java/io/a2a/transport/jsonrpc/handler/JSONRPCHandlerTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ public void testOnMessageNewMessageSuccessMocks() {
186186
SendMessageResponse response;
187187
try (MockedConstruction<EventConsumer> mocked = Mockito.mockConstruction(
188188
EventConsumer.class,
189-
(mock, context) -> {Mockito.doReturn(ZeroPublisher.fromItems(wrapEvent(MINIMAL_TASK))).when(mock).consumeAll();})){
189+
(mock, context) -> {Mockito.doReturn(ZeroPublisher.fromItems(wrapEvent(MINIMAL_TASK))).when(mock).consumeAll();
190+
Mockito.doCallRealMethod().when(mock).createAgentRunnableDoneCallback();})){
190191
response = handler.onMessageSend(request, callContext);
191192
}
192193
assertNull(response.getError());

0 commit comments

Comments
 (0)