From b1f9fc6d5eca486a9fe1b16a4be3b68bd0e9e881 Mon Sep 17 00:00:00 2001 From: Sam Date: Tue, 27 Sep 2022 13:16:02 +0000 Subject: [PATCH] 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, }, }, {