From 1914f319ddabc78b24cce7880775978f483dbb36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=96=E7=95=8C?= Date: Wed, 23 Oct 2024 13:37:38 +0800 Subject: [PATCH] Fix tests --- transport_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/transport_test.go b/transport_test.go index bdaf0a3..0ac29ed 100644 --- a/transport_test.go +++ b/transport_test.go @@ -37,7 +37,9 @@ func TestTransports(t *testing.T) { client := dns.NewClient(dns.ClientOptions{ Logger: logger.NOP(), }) - addresses, err := client.Lookup(context.Background(), transport, "cloudflare.com", dns.DomainStrategyAsIS) + addresses, err := client.Lookup(context.Background(), transport, "cloudflare.com", dns.QueryOptions{ + Strategy: dns.DomainStrategyUseIPv4, + }) require.NoError(t, err) require.NotEmpty(t, addresses) })