*: log, expect by capability check

This commit is contained in:
Gyu-Ho Lee
2016-04-07 16:23:31 -07:00
parent c91c7ca3bf
commit d78345244b
3 changed files with 2 additions and 5 deletions

View File

@@ -169,10 +169,6 @@ func testCtlV2GetRoleUser(t *testing.T, cfg *etcdProcessClusterConfig) {
}
}()
// wait for the server capabilities to be updated based on the version;
// the update loop has a delay of 500ms, so 1s should be enough wait time
time.Sleep(time.Second)
if err := etcdctlRoleAdd(epc, "foo"); err != nil {
t.Fatalf("failed to add role (%v)", err)
}

View File

@@ -252,7 +252,7 @@ func newEtcdProcessCluster(cfg *etcdProcessClusterConfig) (*etcdProcessCluster,
// wait for cluster to start
readyC := make(chan error, cfg.clusterSize+cfg.proxySize)
readyStr := "membership: set the initial cluster version to"
readyStr := "enabled capabilities for version"
for i := range etcdCfgs {
go func(etcdp *etcdProcess) {
rs := readyStr

View File

@@ -63,6 +63,7 @@ func capabilityLoop(s *etcdserver.EtcdServer) {
enableMapMu.Lock()
enabledMap = capabilityMaps[pv.String()]
enableMapMu.Unlock()
plog.Infof("enabled capabilities for version %s", pv)
}
select {