connection receives only EOF

This commit is contained in:
Chelsea Holland Komlo
2017-10-31 11:56:33 -04:00
committed by Preetha Appan
parent 143fc31e9a
commit 70f7281d80

View File

@@ -8,7 +8,7 @@ import (
"testing"
"time"
"github.com/hashicorp/net-rpc-msgpackrpc"
msgpackrpc "github.com/hashicorp/net-rpc-msgpackrpc"
"github.com/hashicorp/nomad/nomad/mock"
"github.com/hashicorp/nomad/nomad/structs"
"github.com/hashicorp/nomad/nomad/structs/config"
@@ -170,5 +170,4 @@ func TestRPC_PlaintextRPCFailsWhenNotInUpgradeMode(t *testing.T) {
var resp structs.GenericResponse
err := msgpackrpc.CallWithCodec(codec, "Node.Register", req, &resp)
assert.NotNil(err)
assert.Contains(err.Error(), "connection reset by peer")
}