agent: fix TestRetryJoinWanFail

This commit is contained in:
Frank Schroeder 2017-10-24 17:12:27 +02:00
parent 4bb5cf425b
commit 8defdddf31
No known key found for this signature in database
GPG Key ID: 4D65C6EAEC87DECD
1 changed files with 3 additions and 8 deletions

View File

@ -156,22 +156,17 @@ func TestRetryJoinFail(t *testing.T) {
func TestRetryJoinWanFail(t *testing.T) { func TestRetryJoinWanFail(t *testing.T) {
t.Parallel() t.Parallel()
t.Skip("fs: skipping tests that use cmd.Run until signal handling is fixed")
cfg := agent.TestConfig()
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)
ui := cli.NewMockUi() ui := cli.NewMockUi()
cmd := New(ui, "", "", "", "", shutdownCh) cmd := New(ui, "", "", "", "", nil)
args := []string{ args := []string{
"-server", "-server",
"-bind", cfg.BindAddr.String(), "-bind", "127.0.0.1",
"-data-dir", tmpDir, "-data-dir", tmpDir,
"-retry-join-wan", cfg.SerfBindAddrWAN.String(), "-retry-join-wan", "127.0.0.1:99",
"-retry-max-wan", "1", "-retry-max-wan", "1",
"-retry-interval-wan", "10ms", "-retry-interval-wan", "10ms",
} }