From c71bad355d81a81525d982f5e8cec7c15b10e248 Mon Sep 17 00:00:00 2001 From: Yevhen Vydolob Date: Wed, 6 Mar 2024 10:43:24 +0200 Subject: [PATCH] Add DNS '8.8.8.8' server to use in test In GH Action, sometime, DNS server return compressed response, which is not comply with RFS, so go is unable to parse response. Signed-off-by: Yevhen Vydolob --- test/basic_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/basic_test.go b/test/basic_test.go index a1fbd5c2c..9f97dd40c 100644 --- a/test/basic_test.go +++ b/test/basic_test.go @@ -70,7 +70,7 @@ var _ = ginkgo.Describe("dns", func() { gomega.Expect(string(out)).To(gomega.ContainSubstring("wikipedia.org nameserver = ns0.wikimedia.org.")) }) ginkgo.It("should resolve LDAP SRV record for google.com", func() { - out, err := sshExec("nslookup -query=srv _ldap._tcp.google.com") + out, err := sshExec("nslookup -query=srv _ldap._tcp.google.com 8.8.8.8") gomega.Expect(err).ShouldNot(gomega.HaveOccurred()) gomega.Expect(string(out)).To(gomega.ContainSubstring(`_ldap._tcp.google.com service = 5 0 389 ldap.google.com.`)) })