mirror of
https://github.com/kemko/nomad.git
synced 2026-01-05 01:45:44 +03:00
connection receives only EOF
This commit is contained in:
committed by
Preetha Appan
parent
143fc31e9a
commit
70f7281d80
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user