mirror of
https://github.com/status-im/consul.git
synced 2025-02-16 15:47:21 +00:00
Removes unneeded shutdown channel in config reading tests.
This commit is contained in:
parent
4a3604a3ee
commit
f1bded7c5e
@ -296,16 +296,12 @@ func TestAgent_HostBasedIDs(t *testing.T) {
|
|||||||
tmpDir := testutil.TempDir(t, "consul")
|
tmpDir := testutil.TempDir(t, "consul")
|
||||||
defer os.RemoveAll(tmpDir)
|
defer os.RemoveAll(tmpDir)
|
||||||
|
|
||||||
shutdownCh := make(chan struct{})
|
|
||||||
defer close(shutdownCh)
|
|
||||||
|
|
||||||
// Host-based IDs are disabled by default.
|
// Host-based IDs are disabled by default.
|
||||||
{
|
{
|
||||||
cmd := &AgentCommand{
|
cmd := &AgentCommand{
|
||||||
args: []string{
|
args: []string{
|
||||||
"-data-dir", tmpDir,
|
"-data-dir", tmpDir,
|
||||||
},
|
},
|
||||||
ShutdownCh: shutdownCh,
|
|
||||||
BaseCommand: baseCommand(cli.NewMockUi()),
|
BaseCommand: baseCommand(cli.NewMockUi()),
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -322,7 +318,6 @@ func TestAgent_HostBasedIDs(t *testing.T) {
|
|||||||
"-data-dir", tmpDir,
|
"-data-dir", tmpDir,
|
||||||
"-disable-host-node-id=false",
|
"-disable-host-node-id=false",
|
||||||
},
|
},
|
||||||
ShutdownCh: shutdownCh,
|
|
||||||
BaseCommand: baseCommand(cli.NewMockUi()),
|
BaseCommand: baseCommand(cli.NewMockUi()),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user