mirror of https://github.com/status-im/consul.git
test: fix incorrect use of t instead of r in retry test (#13146)
This commit is contained in:
parent
8b88ad873f
commit
1e31dc891a
|
@ -3,8 +3,9 @@ package dns
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/hashicorp/consul/sdk/testutil/retry"
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
|
||||||
|
"github.com/hashicorp/consul/sdk/testutil/retry"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestDNS_Recursor_StrategyRandom(t *testing.T) {
|
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
|
// 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
|
// Ensure the elements are not in the same order
|
||||||
require.NotEqual(r, configuredRecursors, recursorsToQuery)
|
require.NotEqual(r, configuredRecursors, recursorsToQuery)
|
||||||
|
|
Loading…
Reference in New Issue