Skip to content

test(server): use ROLE_USER for the client message in BlockingSendMessageStaleStateTest - #1386

Closed
joulook wants to merge 1 commit into
a2aproject:mainfrom
joulook:fix/stale-state-test-role
Closed

joulook wants to merge 1 commit into
a2aproject:mainfrom
joulook:fix/stale-state-test-role

Conversation

@joulook

@joulook joulook commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

#1326 made the request handler reject a client message whose role is not ROLE_USER. BlockingSendMessageStaleStateTest, added in #1315, builds its client message with ROLE_AGENT, so its five tests now fail with Client message role must be ROLE_USER, and server-common fails on main since 2e258a9 (Build and Test run 47170925382 on main, and every PR built on top of it).

This changes the role of that message to ROLE_USER. The message is only ever passed to onMessageSend as the client's message, so that is the role it should have had; no assertion changes. Locally, with the role validation of #1326 applied, mvn -pl server-common test -Dtest=BlockingSendMessageStaleStateTest errors 5 of 5 with ROLE_AGENT and passes 5 of 5 with ROLE_USER; the full server-common suite passes (676 tests).

We are a research team at MPI-SWS building Daavar, a conformance checker for protocol SDKs; #1315 came out of that work, which is why we are fixing its test.

…sageStaleStateTest

a2aproject#1326 made the request handler reject a client message whose role is not
ROLE_USER. BlockingSendMessageStaleStateTest, added in a2aproject#1315, builds its
client message with ROLE_AGENT, so its five tests now fail with
"Client message role must be ROLE_USER" and server-common fails on main.
The message is only ever passed to onMessageSend as the client message, so
ROLE_USER is the role it should have had. No assertion changes.
@joulook

joulook commented Dec 4, 2026

Copy link
Copy Markdown
Contributor Author

Superseded: main now carries the same one-line change to BlockingSendMessageStaleStateTest (ROLE_USER for the client message), so this PR is no longer needed. Closing.

@joulook joulook closed this Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant