Skip to content

Commit c7d4a02

Browse files
committed
Fix client
1 parent d823afb commit c7d4a02

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/server-common/src/test/java/io/a2a/server/apps/common/AbstractA2AServerTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1921,7 +1921,11 @@ public void testAuthRequiredWorkflow() throws Exception {
19211921
}
19221922
};
19231923

1924-
Consumer<Throwable> errorHandler = errorRef::set;
1924+
Consumer<Throwable> errorHandler = error -> {
1925+
if (!isStreamClosedError(error)) {
1926+
errorRef.set(error);
1927+
}
1928+
};
19251929

19261930
// Wait for subscription to be established
19271931
CountDownLatch subscriptionLatch = new CountDownLatch(1);

0 commit comments

Comments
 (0)