Commit f15300be authored by Russ Cox's avatar Russ Cox

expand error regexp in dns test

R=r
DELTA=3  (0 added, 0 deleted, 3 changed)
OCL=35292
CL=35303
parent d4a44682
...@@ -27,15 +27,15 @@ var dialErrorTests = []DialErrorTest { ...@@ -27,15 +27,15 @@ var dialErrorTests = []DialErrorTest {
}, },
DialErrorTest{ DialErrorTest{
"tcp", "", "no-such-name.google.com.:80", "tcp", "", "no-such-name.google.com.:80",
"dial tcp no-such-name.google.com.:80: lookup no-such-name.google.com.: no such host", "dial tcp no-such-name.google.com.:80: lookup no-such-name.google.com.( on .*)?: no such host",
}, },
DialErrorTest{ DialErrorTest{
"tcp", "", "no-such-name.no-such-top-level-domain.:80", "tcp", "", "no-such-name.no-such-top-level-domain.:80",
"dial tcp no-such-name.no-such-top-level-domain.:80: lookup no-such-name.no-such-top-level-domain.: no such host", "dial tcp no-such-name.no-such-top-level-domain.:80: lookup no-such-name.no-such-top-level-domain.( on .*)?: no such host",
}, },
DialErrorTest{ DialErrorTest{
"tcp", "", "no-such-name:80", "tcp", "", "no-such-name:80",
`dial tcp no-such-name:80: lookup no-such-name\..*\.: no such host`, `dial tcp no-such-name:80: lookup no-such-name\..*\.( on .*)?: no such host`,
}, },
DialErrorTest{ DialErrorTest{
"tcp", "", "mh/astro/r70:http", "tcp", "", "mh/astro/r70:http",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment