From b1f9fc6d5eca486a9fe1b16a4be3b68bd0e9e881 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 27 Sep 2022 13:16:02 +0000 Subject: [PATCH 1/2] chore(test): Add more retires In a vain attempt to make the tests less flaky --- pkg/query/print_test.go | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/pkg/query/print_test.go b/pkg/query/print_test.go index 3173d7f..cae3730 100644 --- a/pkg/query/print_test.go +++ b/pkg/query/print_test.go @@ -38,11 +38,12 @@ func TestRealPrint(t *testing.T) { ShowQuery: true, }, Request: util.Request{ - Server: "a.gtld-servers.net", - Port: 53, - Type: dns.StringToType["NS"], - Class: 1, - Name: "google.com.", + Server: "a.gtld-servers.net", + Port: 53, + Type: dns.StringToType["NS"], + Class: 1, + Name: "google.com.", + Retries: 3, }, EDNS: util.EDNS{ EnableEDNS: false, @@ -135,11 +136,12 @@ func TestRealPrint(t *testing.T) { ShowQuery: true, }, Request: util.Request{ - Server: "dns.google", - Port: 853, - Type: dns.StringToType["NS"], - Class: 1, - Name: "freecumextremist.com.", + Server: "dns.google", + Port: 853, + Type: dns.StringToType["NS"], + Class: 1, + Name: "freecumextremist.com.", + Retries: 3, }, }, { -- 2.45.2 From 8a317aafd8c3e1f28e856e66b5f38a78c597ff5d Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 27 Sep 2022 13:19:54 +0000 Subject: [PATCH 2/2] lint? --- pkg/query/print_test.go | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/pkg/query/print_test.go b/pkg/query/print_test.go index cae3730..a758f8a 100644 --- a/pkg/query/print_test.go +++ b/pkg/query/print_test.go @@ -38,12 +38,12 @@ func TestRealPrint(t *testing.T) { ShowQuery: true, }, Request: util.Request{ - Server: "a.gtld-servers.net", - Port: 53, - Type: dns.StringToType["NS"], - Class: 1, - Name: "google.com.", - Retries: 3, + Server: "a.gtld-servers.net", + Port: 53, + Type: dns.StringToType["NS"], + Class: 1, + Name: "google.com.", + Retries: 3, }, EDNS: util.EDNS{ EnableEDNS: false, @@ -136,12 +136,12 @@ func TestRealPrint(t *testing.T) { ShowQuery: true, }, Request: util.Request{ - Server: "dns.google", - Port: 853, - Type: dns.StringToType["NS"], - Class: 1, - Name: "freecumextremist.com.", - Retries: 3, + Server: "dns.google", + Port: 853, + Type: dns.StringToType["NS"], + Class: 1, + Name: "freecumextremist.com.", + Retries: 3, }, }, { -- 2.45.2