test: fix incorrect use of t instead of r in retry test (#13146)

This commit is contained in:
R.B. Boyer 2022-05-19 14:00:07 -05:00 committed by GitHub
parent 2b13cfdddf
commit 09861a2792
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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)