diff --git a/serf/serf_test.go b/serf/serf_test.go index 0dada60fb..10c430548 100644 --- a/serf/serf_test.go +++ b/serf/serf_test.go @@ -979,6 +979,7 @@ func TestSerf_reconnect(t *testing.T) { if err != nil { t.Fatalf("err: %v", err) } + defer s2.Shutdown() waitUntilNumNodes(t, 2, s1, s2) // time.Sleep(s1Config.ReconnectInterval * 5)