From 114b78c75c2343e7a54e00c87625bb7235d15ef2 Mon Sep 17 00:00:00 2001 From: TwiN Date: Tue, 15 Nov 2022 21:39:31 -0500 Subject: [PATCH] test: Replace DNS 1.1.1.1 by 8.8.8.8 --- core/dns_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/dns_test.go b/core/dns_test.go index 2a4bc437..bd3f42d6 100644 --- a/core/dns_test.go +++ b/core/dns_test.go @@ -22,7 +22,7 @@ func TestIntegrationQuery(t *testing.T) { QueryType: "A", QueryName: "example.com.", }, - inputURL: "1.1.1.1", + inputURL: "8.8.8.8", expectedDNSCode: "NOERROR", expectedBody: "93.184.216.34", }, @@ -32,7 +32,7 @@ func TestIntegrationQuery(t *testing.T) { QueryType: "AAAA", QueryName: "example.com.", }, - inputURL: "1.1.1.1", + inputURL: "8.8.8.8", expectedDNSCode: "NOERROR", expectedBody: "2606:2800:220:1:248:1893:25c8:1946", }, @@ -42,7 +42,7 @@ func TestIntegrationQuery(t *testing.T) { QueryType: "CNAME", QueryName: "en.wikipedia.org.", }, - inputURL: "1.1.1.1", + inputURL: "8.8.8.8", expectedDNSCode: "NOERROR", expectedBody: "dyna.wikimedia.org.", }, @@ -52,7 +52,7 @@ func TestIntegrationQuery(t *testing.T) { QueryType: "MX", QueryName: "example.com.", }, - inputURL: "1.1.1.1", + inputURL: "8.8.8.8", expectedDNSCode: "NOERROR", expectedBody: ".", }, @@ -62,7 +62,7 @@ func TestIntegrationQuery(t *testing.T) { QueryType: "NS", QueryName: "example.com.", }, - inputURL: "1.1.1.1", + inputURL: "8.8.8.8", expectedDNSCode: "NOERROR", expectedBody: "*.iana-servers.net.", }, @@ -72,7 +72,7 @@ func TestIntegrationQuery(t *testing.T) { QueryType: "B", QueryName: "example", }, - inputURL: "1.1.1.1", + inputURL: "8.8.8.8", isErrExpected: true, }, }