Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(16)

Issue 5571062: code review 5571062: net/rpc: fix race in TestClientWriteError test (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 3 months ago by dvyukov
Modified:
12 years, 3 months ago
Reviewers:
CC:
golang-dev, mpimenov, r
Visibility:
Public.

Description

net/rpc: fix race in TestClientWriteError test Fixes issue 2752.

Patch Set 1 #

Patch Set 2 : diff -r f10dfb8fa0eb https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r f10dfb8fa0eb https://go.googlecode.com/hg/ #

Total comments: 3

Patch Set 4 : diff -r 2514bbcded3d https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -3 lines) Patch
M src/pkg/net/rpc/server_test.go View 1 3 chunks +8 lines, -3 lines 0 comments Download

Messages

Total messages: 6
dvyukov
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com, mpimenov@google.com), I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 3 months ago (2012-01-25 13:47:51 UTC) #1
mpimenov
http://codereview.appspot.com/5571062/diff/2001/src/pkg/net/rpc/server_test.go File src/pkg/net/rpc/server_test.go (right): http://codereview.appspot.com/5571062/diff/2001/src/pkg/net/rpc/server_test.go#newcode497 src/pkg/net/rpc/server_test.go:497: } Don't you need c.Close() here?
12 years, 3 months ago (2012-01-25 14:36:25 UTC) #2
dvyukov
http://codereview.appspot.com/5571062/diff/2001/src/pkg/net/rpc/server_test.go File src/pkg/net/rpc/server_test.go (right): http://codereview.appspot.com/5571062/diff/2001/src/pkg/net/rpc/server_test.go#newcode497 src/pkg/net/rpc/server_test.go:497: } On 2012/01/25 14:36:25, mpimenov wrote: > Don't you ...
12 years, 3 months ago (2012-01-25 14:43:47 UTC) #3
r
LGTM http://codereview.appspot.com/5571062/diff/2001/src/pkg/net/rpc/server_test.go File src/pkg/net/rpc/server_test.go (right): http://codereview.appspot.com/5571062/diff/2001/src/pkg/net/rpc/server_test.go#newcode497 src/pkg/net/rpc/server_test.go:497: } agree with dvyukov here, it's totally unnecessary.
12 years, 3 months ago (2012-01-25 18:47:41 UTC) #4
dvyukov
*** Submitted as http://code.google.com/p/go/source/detail?r=51c8b6d6dbe2 *** net/rpc: fix race in TestClientWriteError test Fixes issue 2752. R=golang-dev, ...
12 years, 3 months ago (2012-01-26 07:37:48 UTC) #5
dvyukov
12 years, 3 months ago (2012-01-26 07:39:17 UTC) #6
On 2012/01/25 18:47:41, r wrote:
>
http://codereview.appspot.com/5571062/diff/2001/src/pkg/net/rpc/server_test.g...
> src/pkg/net/rpc/server_test.go:497: }
> agree with dvyukov here, it's totally unnecessary.

Per offline discussion with Maxim, he pointed out that Client.Close() is never
called in tests, so it's non evident that it works.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b