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
When submitting PR, there is a certain probability that this test case will go wrong.
There is a contradiction in its logic.
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 caseifsendErr:=stream.Send(&pingv1.SumRequest{Number: 1}); sendErr!=nil {
assert.ErrorIs(t, err, io.EOF) // mey sendErrassert.Equal(t, triple.CodeOf(err), triple.CodeUnknown) // mey sendErr
}
err=stream.CloseAndReceive(triple.NewResponse(&pingv1.SumResponse{}))
assert.Equal(t, triple.CodeOf(err), triple.CodeInvalidArgument)
})
Environment
Issue description
When submitting PR, there is a certain probability that this test case will go wrong.
There is a contradiction in its logic.
code link
https://github.com/apache/dubbo-go/blob/1f7eb1180cd9864aa52003b9f9cb11e8549b9a86/protocol/triple/triple_protocol/triple_ext_test.go#L166C1-L175C5
Logs
Click me to check logs
The text was updated successfully, but these errors were encountered: