yyqdbngt opened a new pull request, #3837:
URL: https://github.com/apache/rocketmq-dashboard/pull/3837

   ### Motivation
   
   The existing `LlmSseSessionTest` covers lifecycle-driven task cancellation 
and the normal completion path, but the `send` guard, the single-task ownership 
rule and the idempotence of `beginTerminal` were untested.
   
   ### Changes
   
   - `sendShouldRejectAfterCancellation`: sending after a cancel raises 
`IOException` with the disconnected message before touching the emitter.
   - `attachShouldRejectASecondTask`: a second attachment is cancelled and 
raises `IllegalStateException`, leaving the first task untouched.
   - `beginTerminalShouldBeIdempotent`: only the first `beginTerminal` returns 
true.
   
   ### Verification
   
   ```
   mvn -B test -Dtest=LlmSseSessionTest
   [INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0
   [INFO] BUILD SUCCESS
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to