Permalink
Browse files

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>
  • Loading branch information...
bradfitz committed Apr 12, 2016
1 parent e46b00a commit f6db855d5595e170bfc70d90f1eaa26034d2e191
Showing with 8,467 additions and 2 deletions.
  1. +2 −2 src/net/sendfile_test.go
  2. +8,465 −0 src/net/testdata/Mark.Twain-Tom.Sawyer.txt
View
@@ -14,12 +14,12 @@ import (
)
const (
twain = "../compress/testdata/Mark.Twain-Tom.Sawyer.txt"
twain = "testdata/Mark.Twain-Tom.Sawyer.txt"
twainLen = 387851
twainSHA256 = "461eb7cb2d57d293fc680c836464c9125e4382be3596f7d415093ae9db8fcb0e"
)
func TestSendFile(t *testing.T) {
func TestSendfile(t *testing.T) {
ln, err := newLocalListener("tcp")
if err != nil {
t.Fatal(err)
Oops, something went wrong.

0 comments on commit f6db855

Please sign in to comment.