YarBor opened a new issue, #2659:
URL: https://github.com/apache/dubbo-go/issues/2659
### Environment
- Server: Dubbo-go, v3.1.1
- Client: Dubbo-go, v3.1.1
### Issue description
When submitting PR, there is a certain probability that this test case will
go wrong.
There is a contradiction in its logic.
```go
t.Run("sum_error", func(t *testing.T) {
stream, err := client.Sum(context.Background())
assert.Nil(t, err)
// If this assertion is passed, an error will be reported in
the following case
if sendErr := stream.Send(&pingv1.SumRequest{Number: 1});
sendErr != nil {
assert.ErrorIs(t, err, io.EOF) // mey sendErr
assert.Equal(t, triple.CodeOf(err), triple.CodeUnknown)
// mey sendErr
}
err =
stream.CloseAndReceive(triple.NewResponse(&pingv1.SumResponse{}))
assert.Equal(t, triple.CodeOf(err), triple.CodeInvalidArgument)
})
```
## code link
https://github.com/apache/dubbo-go/blob/1f7eb1180cd9864aa52003b9f9cb11e8549b9a86/protocol/triple/triple_protocol/triple_ext_test.go#L166C1-L175C5
<!-- Here is a brief description about the issue. -->
### Logs
<details><summary>Click me to check logs</summary>
```
Copy logs to here.
```
</details>
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]