Removes unneeded shutdown channel in config reading tests.

This commit is contained in:
James Phillips 2017-06-25 10:39:51 -07:00
parent 4a3604a3ee
commit f1bded7c5e
No known key found for this signature in database
GPG Key ID: 77183E682AC5FC11
1 changed files with 0 additions and 5 deletions

View File

@ -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()),
}