]> Cypherpunks repositories - gostls13.git/commitdiff
net: fix tests for /etc/hosts with entries named "test"
authorMatthew Dempsky <mdempsky@google.com>
Fri, 17 Mar 2017 20:34:56 +0000 (13:34 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Sat, 18 Mar 2017 00:02:34 +0000 (00:02 +0000)
Fixes #19592.

Change-Id: I8946b33fd36ae1f39bdcc4bf0bd4b5b99618efe8
Reviewed-on: https://go-review.googlesource.com/38300
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/net/dnsclient_unix_test.go

index ec28af68fb43211c701482afde456336214c8499..e1bbf68e57ff659086236c8ab69bceb6f33aaabb 100644 (file)
@@ -895,10 +895,10 @@ func TestStrictErrorsLookupIP(t *testing.T) {
                t.Fatal(err)
        }
 
-       const name = "test"
+       const name = "test-issue19592"
        const server = "192.0.2.53:53"
-       const searchX = "test.x.golang.org."
-       const searchY = "test.y.golang.org."
+       const searchX = "test-issue19592.x.golang.org."
+       const searchY = "test-issue19592.y.golang.org."
        const ip4 = "192.0.2.1"
        const ip6 = "2001:db8::1"