test: fix missing agent shutdowns

This commit is contained in:
Michael Schurter 2020-02-07 15:38:12 -08:00
parent d96ceee8c5
commit 9d3093fa31

View file

@ -11,6 +11,7 @@ func TestHTTP_rpcHandlerForAlloc(t *testing.T) {
t.Parallel()
require := require.New(t)
agent := NewTestAgent(t, t.Name(), nil)
defer agent.Shutdown()
a := mockFSAlloc(agent.client.NodeID(), nil)
addAllocToClient(agent, a, terminalClientAlloc)
@ -54,6 +55,8 @@ func TestHTTP_rpcHandlerForNode(t *testing.T) {
t.Parallel()
require := require.New(t)
agent := NewTestAgent(t, t.Name(), nil)
defer agent.Shutdown()
cID := agent.client.NodeID()
// Case 1: Node running, no node ID given