From: as Date: Tue, 6 Mar 2018 06:10:19 +0000 (+0000) Subject: net/http: correct subtle transposition of offset and whence in test X-Git-Tag: go1.11beta1~1335 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=df8c2b905b5fb9d6cae9729a81c8f2c5034efe34;p=gostls13.git net/http: correct subtle transposition of offset and whence in test Change-Id: I788972bdf85c0225397c0e74901bf9c33c6d30c7 GitHub-Last-Rev: 57737fe782bf7ad2d765c2efd80d75b3baca2c7b GitHub-Pull-Request: golang/go#24265 Reviewed-on: https://go-review.googlesource.com/98761 Reviewed-by: Brad Fitzpatrick --- diff --git a/src/net/http/fs_test.go b/src/net/http/fs_test.go index 6ab122cf82..255d215f3c 100644 --- a/src/net/http/fs_test.go +++ b/src/net/http/fs_test.go @@ -993,7 +993,7 @@ func TestServeContent(t *testing.T) { for _, method := range []string{"GET", "HEAD"} { //restore content in case it is consumed by previous method if content, ok := content.(*strings.Reader); ok { - content.Seek(io.SeekStart, 0) + content.Seek(0, io.SeekStart) } servec <- serveParam{