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

Issue 7324046: rpc: don't hang tests on failure

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by rog
Modified:
11 years, 2 months ago
Reviewers:
dimitern, mp+148162, fwereade
Visibility:
Public.

Description

rpc: don't hang tests on failure As suggested in previous CL. Also delete Accept method, also suggested earlier and not done. https://code.launchpad.net/~rogpeppe/juju-core/213-rpc-test-timeouts/+merge/148162 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : rpc: don't hang tests on failure #

Total comments: 2

Patch Set 3 : rpc: don't hang tests on failure #

Patch Set 4 : rpc: don't hang tests on failure #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -54 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M rpc/rpc_test.go View 4 chunks +34 lines, -15 lines 0 comments Download
M rpc/server.go View 1 2 2 chunks +0 lines, -39 lines 0 comments Download

Messages

Total messages: 5
rog
Please take a look.
11 years, 2 months ago (2013-02-13 12:20:45 UTC) #1
dimitern
LGTM
11 years, 2 months ago (2013-02-13 12:36:40 UTC) #2
fwereade
LGTM, one suggestion https://codereview.appspot.com/7324046/diff/2001/rpc/rpc_test.go File rpc/rpc_test.go (right): https://codereview.appspot.com/7324046/diff/2001/rpc/rpc_test.go#newcode277 rpc/rpc_test.go:277: case <-time.After(3 * time.Second): Can we ...
11 years, 2 months ago (2013-02-13 12:56:35 UTC) #3
rog
Please take a look.
11 years, 2 months ago (2013-02-13 13:02:58 UTC) #4
rog
11 years, 2 months ago (2013-02-13 15:54:44 UTC) #5
*** Submitted:

rpc: don't hang tests on failure

As suggested in previous CL.
Also delete Accept method, also suggested earlier
and not done.

R=dimitern, fwereade
CC=
https://codereview.appspot.com/7324046

https://codereview.appspot.com/7324046/diff/2001/rpc/rpc_test.go
File rpc/rpc_test.go (right):

https://codereview.appspot.com/7324046/diff/2001/rpc/rpc_test.go#newcode277
rpc/rpc_test.go:277: case <-time.After(3 * time.Second):
On 2013/02/13 12:56:35, fwereade wrote:
> Can we reasonably drop this to, say, half a second?

why bother? the timeout only happens on test failure, and in that case 3 seconds
isn't an issue.
Sign in to reply to this message.

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