From f081e45a8975505ad612a6a4c835c5c397b451ad Mon Sep 17 00:00:00 2001 From: James Phillips Date: Sun, 25 Jun 2017 10:39:51 -0700 Subject: [PATCH] Removes unneeded shutdown channel in config reading tests. --- command/agent_test.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/command/agent_test.go b/command/agent_test.go index 6c74777d4..9f22f0164 100644 --- a/command/agent_test.go +++ b/command/agent_test.go @@ -296,16 +296,12 @@ func TestAgent_HostBasedIDs(t *testing.T) { tmpDir := testutil.TempDir(t, "consul") defer os.RemoveAll(tmpDir) - shutdownCh := make(chan struct{}) - defer close(shutdownCh) - // Host-based IDs are disabled by default. { cmd := &AgentCommand{ args: []string{ "-data-dir", tmpDir, }, - ShutdownCh: shutdownCh, BaseCommand: baseCommand(cli.NewMockUi()), } @@ -322,7 +318,6 @@ func TestAgent_HostBasedIDs(t *testing.T) { "-data-dir", tmpDir, "-disable-host-node-id=false", }, - ShutdownCh: shutdownCh, BaseCommand: baseCommand(cli.NewMockUi()), }