]> Cypherpunks repositories - gostls13.git/commitdiff
two more regexp tweaks
authorRuss Cox <rsc@golang.org>
Wed, 4 Nov 2009 16:34:31 +0000 (08:34 -0800)
committerRuss Cox <rsc@golang.org>
Wed, 4 Nov 2009 16:34:31 +0000 (08:34 -0800)
TBR=r
http://go/go-review/1016037

src/pkg/net/net_test.go

index 8377201e5f4a9b43281e0fe859fed7319db82965..cd888679faa7ef6805adba1872d1e8b99423bccd 100644 (file)
@@ -27,7 +27,7 @@ var dialErrorTests = []DialErrorTest {
        },
        DialErrorTest{
                "tcp", "", "no-such-name.google.com.:80",
-               "dial tcp no-such-name.google.com.:80: lookup no-such-name.google.com.( on .*)?: no such host",
+               "dial tcp no-such-name.google.com.:80: lookup no-such-name.google.com.( on .*)?: no (.*)",
        },
        DialErrorTest{
                "tcp", "", "no-such-name.no-such-top-level-domain.:80",
@@ -35,7 +35,7 @@ var dialErrorTests = []DialErrorTest {
        },
        DialErrorTest{
                "tcp", "", "no-such-name:80",
-               `dial tcp no-such-name:80: lookup no-such-name\..*\.( on .*)?: no such host`,
+               `dial tcp no-such-name:80: lookup no-such-name\..*\.( on .*)?: no (.*)`,
        },
        DialErrorTest{
                "tcp", "", "mh/astro/r70:http",