Skip to content

Commit

Permalink
Sending a message beyond the max receivable message size for the server
Browse files Browse the repository at this point in the history
no longer returns an EOF.

Signed-off-by: Ying Li <[email protected]>
  • Loading branch information
cyli committed May 29, 2018
1 parent 90418ad commit e54ad63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manager/state/raft/raft_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -975,7 +975,7 @@ func TestStreamRaftMessage(t *testing.T) {

raftMsg := &api.StreamRaftMessageRequest{Message: msg}
err = stream.Send(raftMsg)
assert.Error(t, err, "Received unexpected error EOF")
assert.NoError(t, err)

_, err = stream.CloseAndRecv()
errStr := fmt.Sprintf("grpc: received message larger than max (%d vs. %d)", raftMsg.Size(), transport.GRPCMaxMsgSize)
Expand Down

0 comments on commit e54ad63

Please sign in to comment.