From 8defdddf3173a4138c94269bd6db9ab9df2297c0 Mon Sep 17 00:00:00 2001 From: Frank Schroeder Date: Tue, 24 Oct 2017 17:12:27 +0200 Subject: [PATCH] agent: fix TestRetryJoinWanFail --- command/agent/agent_test.go | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/command/agent/agent_test.go b/command/agent/agent_test.go index 8ba836f26..94e15f5eb 100644 --- a/command/agent/agent_test.go +++ b/command/agent/agent_test.go @@ -156,22 +156,17 @@ func TestRetryJoinFail(t *testing.T) { func TestRetryJoinWanFail(t *testing.T) { t.Parallel() - t.Skip("fs: skipping tests that use cmd.Run until signal handling is fixed") - cfg := agent.TestConfig() tmpDir := testutil.TempDir(t, "consul") defer os.RemoveAll(tmpDir) - shutdownCh := make(chan struct{}) - defer close(shutdownCh) - ui := cli.NewMockUi() - cmd := New(ui, "", "", "", "", shutdownCh) + cmd := New(ui, "", "", "", "", nil) args := []string{ "-server", - "-bind", cfg.BindAddr.String(), + "-bind", "127.0.0.1", "-data-dir", tmpDir, - "-retry-join-wan", cfg.SerfBindAddrWAN.String(), + "-retry-join-wan", "127.0.0.1:99", "-retry-max-wan", "1", "-retry-interval-wan", "10ms", }