Skip to content

Commit

Permalink
Update tests for changes in gRPC
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
thaJeztah committed May 11, 2018
1 parent 19605fa commit 2a14d4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manager/state/raft/raft_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -983,9 +983,9 @@ func TestStreamRaftMessage(t *testing.T) {
assert.Error(t, err, "Received unexpected error EOF")

_, err = stream.CloseAndRecv()
errStr := fmt.Sprintf("grpc: received message length %d exceeding the max size %d", raftMsg.Size(), transport.GRPCMaxMsgSize)
errStr := fmt.Sprintf("grpc: received message larger than max (%d vs. %d)", raftMsg.Size(), transport.GRPCMaxMsgSize)
s, _ := status.FromError(err)
assert.Equal(t, codes.Internal, s.Code())
assert.Equal(t, codes.ResourceExhausted, s.Code())
assert.Equal(t, errStr, s.Message())

// Sending multiple snap messages with different indexes
Expand Down

0 comments on commit 2a14d4a

Please sign in to comment.