diff --git a/src/pkg/net/timeout_test.go b/src/pkg/net/timeout_test.go index 3343c4a551..f6f92409df 100644 --- a/src/pkg/net/timeout_test.go +++ b/src/pkg/net/timeout_test.go @@ -201,7 +201,7 @@ func TestReadWriteDeadline(t *testing.T) { go func() { var buf [10]byte - _, err = c.Read(buf[:]) + _, err := c.Read(buf[:]) if err == nil { t.Errorf("Read should not succeed") } @@ -212,7 +212,7 @@ func TestReadWriteDeadline(t *testing.T) { go func() { var buf [10000]byte for { - _, err = c.Write(buf[:]) + _, err := c.Write(buf[:]) if err != nil { break }