You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5f4b30e
Browse filesBrowse the repository at this point in the historyBrowse files
test(rest): cover SSE completion and parsing error outcomes
REST streams must deliver one terminal outcome: `null` for normal completion, or the original error when parsing fails.
The production fix from this PR is already on `main` through a2aproject#1236. After rebasing, this PR retains the contributor's listener tests and strengthens the malformed JSON and missing-payload cases to verify that a later `onComplete()` neither delivers a second callback nor replaces the error. The duplicate transport completion test has been removed because `main` already covers that behavior.
Validation:
- `mvn -B -pl client/transport/rest -am test`
- Temporarily restoring the old direct parsing-error callbacks makes both strengthened tests fail with two terminal callbacks; restoring `signalTerminal` makes them pass.
This fixesa2aproject#1194
Copy file name to clipboardExpand all lines: client/transport/rest/src/test/java/org/a2aproject/sdk/client/transport/rest/sse/SSEEventListenerTest.java
0 commit comments