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

Issue 6245053: state: fix watcher semantics and tests.

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

Description

state: fix watcher semantics and tests. The watchers are now all documented as returning the initial state as the first event on the channel, (a change actually made a little while ago) and the tests now reflect this. https://code.launchpad.net/~rogpeppe/juju/go-state-fix-watcher-tests/+merge/107380 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : state: fix watcher semantics and tests. #

Patch Set 3 : state: fix watcher semantics and tests. #

Total comments: 1

Patch Set 4 : state: fix watcher semantics and tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -23 lines) Patch
A [revision details] View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M state/state.go View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M state/watcher.go View 1 2 3 6 chunks +18 lines, -4 lines 0 comments Download
M state/watcher/watcher.go View 1 2 3 4 chunks +17 lines, -10 lines 0 comments Download
M state/watcher/watcher_test.go View 4 chunks +6 lines, -2 lines 0 comments Download
M state/watcher_test.go View 1 2 3 8 chunks +14 lines, -6 lines 0 comments Download

Messages

Total messages: 6
rog
Please take a look.
11 years, 11 months ago (2012-05-25 13:44:02 UTC) #1
rog
Please take a look.
11 years, 11 months ago (2012-05-25 13:46:29 UTC) #2
TheMue
LGTM On 2012/05/25 13:46:29, rog wrote: > Please take a look.
11 years, 11 months ago (2012-05-25 13:57:24 UTC) #3
niemeyer
Nice fix, LGTM. Please just consider the following before merging: https://codereview.appspot.com/6245053/diff/12/state/watcher.go File state/watcher.go (right): https://codereview.appspot.com/6245053/diff/12/state/watcher.go#newcode34 ...
11 years, 11 months ago (2012-05-25 19:42:38 UTC) #4
rog
Sorry, I don't understand that... On May 25, 2012 8:42 PM, <n13m3y3r@gmail.com> wrote: > > ...
11 years, 11 months ago (2012-05-25 22:42:14 UTC) #5
rog
11 years, 11 months ago (2012-05-28 07:25:34 UTC) #6
*** Submitted:

state: fix watcher semantics and tests.

The watchers are now all documented as returning the
initial state as the first event on the channel,
(a change actually made a little while ago)
and the tests now reflect this.

R=TheMue, niemeyer
CC=
https://codereview.appspot.com/6245053
Sign in to reply to this message.

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