net: mirror Tom Sawyer in the net package for tests

Fixes the darwin/arm builder, which has a special test runner which
makes the assumption that tests never use testdata from another
package.

This looks large, but it's no more space in git.

Change-Id: I81921b516443d12d21b77617d323ddebedbe40f8
Reviewed-on: https://go-review.googlesource.com/21907
Reviewed-by: David Crawshaw <crawshaw@golang.org>
Run-TryBot: David Crawshaw <crawshaw@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Brad Fitzpatrick 2016-04-12 21:51:19 +00:00
parent e46b00a43b
commit f6db855d55
2 changed files with 8467 additions and 2 deletions

View file

@ -14,12 +14,12 @@ import (
) )
const ( const (
twain = "../compress/testdata/Mark.Twain-Tom.Sawyer.txt" twain = "testdata/Mark.Twain-Tom.Sawyer.txt"
twainLen = 387851 twainLen = 387851
twainSHA256 = "461eb7cb2d57d293fc680c836464c9125e4382be3596f7d415093ae9db8fcb0e" twainSHA256 = "461eb7cb2d57d293fc680c836464c9125e4382be3596f7d415093ae9db8fcb0e"
) )
func TestSendFile(t *testing.T) { func TestSendfile(t *testing.T) {
ln, err := newLocalListener("tcp") ln, err := newLocalListener("tcp")
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)

8465
src/net/testdata/Mark.Twain-Tom.Sawyer.txt vendored Normal file

File diff suppressed because it is too large Load diff