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

Issue 7310095: state/api: use reliable test

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

Description

state/api: use reliable test When we Stop the server, the client does not get immediate notification, so we can't guarantee an immediate ErrShutdown response. Also make errors more consistent in rpc. https://code.launchpad.net/~rogpeppe/juju-core/218-api-either-error/+merge/148722 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : state/api: use reliable test #

Total comments: 2

Patch Set 3 : state/api: use reliable test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -4 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M rpc/client.go View 1 2 chunks +7 lines, -3 lines 0 comments Download
M rpc/rpc_test.go View 1 chunk +10 lines, -0 lines 0 comments Download
M state/api/api_test.go View 1 2 2 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 5
rog
Please take a look.
11 years, 2 months ago (2013-02-15 14:19:31 UTC) #1
dimitern
LGTM https://codereview.appspot.com/7310095/diff/2001/rpc/client.go File rpc/client.go (right): https://codereview.appspot.com/7310095/diff/2001/rpc/client.go#newcode187 rpc/client.go:187: err = ErrShutdown So the client will definitely ...
11 years, 2 months ago (2013-02-15 14:22:56 UTC) #2
rog
https://codereview.appspot.com/7310095/diff/2001/rpc/client.go File rpc/client.go (right): https://codereview.appspot.com/7310095/diff/2001/rpc/client.go#newcode187 rpc/client.go:187: err = ErrShutdown On 2013/02/15 14:22:56, dimitern wrote: > ...
11 years, 2 months ago (2013-02-15 14:26:20 UTC) #3
dfc
LGTM. Thanks
11 years, 2 months ago (2013-02-17 22:59:59 UTC) #4
rog
11 years, 2 months ago (2013-02-18 12:06:21 UTC) #5
*** Submitted:

state/api: use reliable test

When we Stop the server, the client does
not get immediate notification, so we can't
guarantee an immediate ErrShutdown response.

Also make errors more consistent in rpc.

R=dimitern, dfc
CC=
https://codereview.appspot.com/7310095
Sign in to reply to this message.

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