Skip to content

Commit

Permalink
Add DNS '8.8.8.8' server to use in test
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
evidolob committed Mar 6, 2024
1 parent a6d8ada commit c71bad3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/basic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.`))
})
Expand Down

0 comments on commit c71bad3

Please sign in to comment.