]> Cypherpunks repositories - gostls13.git/commitdiff
net/http: correct subtle transposition of offset and whence in test
authoras <as.utf8@gmail.com>
Tue, 6 Mar 2018 06:10:19 +0000 (06:10 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 6 Mar 2018 06:13:17 +0000 (06:13 +0000)
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 <bradfitz@golang.org>
src/net/http/fs_test.go

index 6ab122cf82e11c8ab457b05785a8f51c4c92b001..255d215f3cfe07baf174040e468d6270751f6c03 100644 (file)
@@ -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{