mirror of https://github.com/grpc/grpc-go.git
Merge pull request #791 from menghanl/all_EOF_in_write
io.EOF should be an expected result of Write
This commit is contained in:
commit
9e57a405e3
|
|
@ -732,7 +732,7 @@ func TestEncodingRequiredStatus(t *testing.T) {
|
|||
Last: true,
|
||||
Delay: false,
|
||||
}
|
||||
if err := ct.Write(s, expectedRequest, &opts); err != nil {
|
||||
if err := ct.Write(s, expectedRequest, &opts); err != nil || err == io.EOF {
|
||||
t.Fatalf("Failed to write the request: %v", err)
|
||||
}
|
||||
p := make([]byte, http2MaxFrameLen)
|
||||
|
|
|
|||
Loading…
Reference in New Issue