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
test: add regression test for RecvMsg() error shadowing #7510 (#8820)
Fixes: #7510
This PR adds a regression test for a bug where `RecvMsg` could swallow
errors in non-server-streaming RPCs (fixed in #7505).
Prior to the fix, a variable shadowing error in `csAttempt.recvMsg`
caused errors to be ignored in specific scenarios. When `RecvMsg` called
`recv` to check for an expected `EOF` after a successful message, any
other error returned by `recv` was shadowed by the outer scope's `err`
variable, leading `RecvMsg` to return `nil` instead of the actual error.
This test verifies that `RecvMsg` correctly propagates these errors
instead of swallowing them, preventing future regressions of this logic.
RELEASE NOTES: N/A
0 commit comments