all: resync fix

This commit is contained in:
Ainar Garipov
2024-10-02 20:25:07 +03:00
parent e8fd4b1872
commit ee1eb80786
5 changed files with 54 additions and 11 deletions

View File

@@ -584,7 +584,11 @@ func TestSafeSearch(t *testing.T) {
req := createTestMessage(tc.host)
var reply *dns.Msg
reply, _, err = client.Exchange(req, addr)
require.Eventually(t, func() (ok bool) {
reply, _, err = client.Exchange(req, addr)
return err == nil
}, testTimeout*10, testTimeout)
require.NoErrorf(t, err, "couldn't talk to server %s: %s", addr, err)
if tc.wantCNAME != "" {