mirror of https://github.com/status-im/consul.git
test: unflake TestDNS_ServiceLookup_WanTranslation
Use retry.R struct to check length of WANMembers so that retries can work appropriately.
This commit is contained in:
parent
3fb7101fa9
commit
b437b53d55
|
@ -2366,8 +2366,8 @@ func TestDNS_ServiceLookup_WanTranslation(t *testing.T) {
|
||||||
_, err := a2.JoinWAN([]string{addr})
|
_, err := a2.JoinWAN([]string{addr})
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
retry.Run(t, func(r *retry.R) {
|
retry.Run(t, func(r *retry.R) {
|
||||||
require.Len(t, a1.WANMembers(), 2)
|
require.Len(r, a1.WANMembers(), 2)
|
||||||
require.Len(t, a2.WANMembers(), 2)
|
require.Len(r, a2.WANMembers(), 2)
|
||||||
})
|
})
|
||||||
|
|
||||||
// Register an equivalent prepared query.
|
// Register an equivalent prepared query.
|
||||||
|
|
Loading…
Reference in New Issue