From 09861a2792c8d47274bdbe4f377e71241ddb40c7 Mon Sep 17 00:00:00 2001 From: "R.B. Boyer" <4903+rboyer@users.noreply.github.com> Date: Thu, 19 May 2022 14:00:07 -0500 Subject: [PATCH] test: fix incorrect use of t instead of r in retry test (#13146) --- agent/dns/dns_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/agent/dns/dns_test.go b/agent/dns/dns_test.go index d401bf93b..59d92efd0 100644 --- a/agent/dns/dns_test.go +++ b/agent/dns/dns_test.go @@ -3,8 +3,9 @@ package dns import ( "testing" - "github.com/hashicorp/consul/sdk/testutil/retry" "github.com/stretchr/testify/require" + + "github.com/hashicorp/consul/sdk/testutil/retry" ) func TestDNS_Recursor_StrategyRandom(t *testing.T) { @@ -18,7 +19,7 @@ func TestDNS_Recursor_StrategyRandom(t *testing.T) { } // Ensure the slices contain the same elements - require.ElementsMatch(t, configuredRecursors, recursorsToQuery) + require.ElementsMatch(r, configuredRecursors, recursorsToQuery) // Ensure the elements are not in the same order require.NotEqual(r, configuredRecursors, recursorsToQuery)