From 6666832077e6fd75bd402c842d71e7c97b3f98eb Mon Sep 17 00:00:00 2001 From: "R.B. Boyer" <4903+rboyer@users.noreply.github.com> Date: Tue, 1 Mar 2022 10:30:06 -0600 Subject: [PATCH] test: parallelize more of TestLeader_ReapOrLeftMember_IgnoreSelf (#12468) before: $ go test ./agent/consul -run TestLeader_ReapOrLeftMember_IgnoreSelf ok github.com/hashicorp/consul/agent/consul 21.147s after: $ go test ./agent/consul -run TestLeader_ReapOrLeftMember_IgnoreSelf ok github.com/hashicorp/consul/agent/consul 5.402s --- agent/consul/leader_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/agent/consul/leader_test.go b/agent/consul/leader_test.go index 15c9757c36..0d17d60ece 100644 --- a/agent/consul/leader_test.go +++ b/agent/consul/leader_test.go @@ -275,6 +275,7 @@ func TestLeader_ReapOrLeftMember_IgnoreSelf(t *testing.T) { t.Parallel() run := func(t *testing.T, status serf.MemberStatus, nameFn func(string) string) { + t.Parallel() dir1, s1 := testServerWithConfig(t, func(c *Config) { c.PrimaryDatacenter = "dc1" c.ACLsEnabled = true @@ -328,6 +329,7 @@ func TestLeader_ReapOrLeftMember_IgnoreSelf(t *testing.T) { } t.Run("original name", func(t *testing.T) { + t.Parallel() t.Run("left", func(t *testing.T) { run(t, serf.StatusLeft, nil) }) @@ -337,6 +339,7 @@ func TestLeader_ReapOrLeftMember_IgnoreSelf(t *testing.T) { }) t.Run("uppercased name", func(t *testing.T) { + t.Parallel() t.Run("left", func(t *testing.T) { run(t, serf.StatusLeft, strings.ToUpper) })