gofmt -r "WaitToWatch->WaitForWatchCompletion"

This commit is contained in:
Nan Deng 2014-06-30 16:09:15 -07:00
parent f13f1a5da6
commit 905c6dcb10
2 changed files with 3 additions and 3 deletions

View File

@ -446,7 +446,7 @@ func TestWatchControllers(t *testing.T) {
go manager.watchControllers()
fakeEtcd.WaitToWatch()
fakeEtcd.WaitForWatchCompletion()
// Test normal case
testControllerSpec.ID = "foo"
@ -473,7 +473,7 @@ func TestWatchControllers(t *testing.T) {
// Test purposeful shutdown
go manager.watchControllers()
fakeEtcd.WaitToWatch()
fakeEtcd.WaitForWatchCompletion()
fakeEtcd.WatchStop <- true
// Did everything shut down?

View File

@ -105,7 +105,7 @@ func (f *FakeEtcdClient) Delete(key string, recursive bool) (*etcd.Response, err
return &etcd.Response{}, f.Err
}
func (f *FakeEtcdClient) WaitToWatch() {
func (f *FakeEtcdClient) WaitForWatchCompletion() {
f.condLock.Lock()
defer f.condLock.Unlock()
f.condChannelsReady.Wait()