From 8c25fff3299c9e1cd49b48e2f6bd9e9d3dec84c8 Mon Sep 17 00:00:00 2001 From: Chris Piraino Date: Thu, 7 Nov 2019 14:43:45 -0600 Subject: [PATCH] test: unflake TestDNS_ServiceLookup_WanTranslation Use retry.R struct to check length of WANMembers so that retries can work appropriately. --- agent/dns_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agent/dns_test.go b/agent/dns_test.go index afc6c1c23..685be283f 100644 --- a/agent/dns_test.go +++ b/agent/dns_test.go @@ -2366,8 +2366,8 @@ func TestDNS_ServiceLookup_WanTranslation(t *testing.T) { _, err := a2.JoinWAN([]string{addr}) require.NoError(t, err) retry.Run(t, func(r *retry.R) { - require.Len(t, a1.WANMembers(), 2) - require.Len(t, a2.WANMembers(), 2) + require.Len(r, a1.WANMembers(), 2) + require.Len(r, a2.WANMembers(), 2) }) // Register an equivalent prepared query.