From: Russ Cox Date: Wed, 4 Nov 2009 16:34:31 +0000 (-0800) Subject: two more regexp tweaks X-Git-Tag: weekly.2009-11-06~94 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=d441d545a98dbab3a1c82973a1e81d7caa1b015d;p=gostls13.git two more regexp tweaks TBR=r http://go/go-review/1016037 --- diff --git a/src/pkg/net/net_test.go b/src/pkg/net/net_test.go index 8377201e5f..cd888679fa 100644 --- a/src/pkg/net/net_test.go +++ b/src/pkg/net/net_test.go @@ -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",