mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
server: wait for entries to be committed in TestClusterConfigReload
This commit is contained in:
parent
659eb5fd2a
commit
b1426e2635
@ -173,6 +173,8 @@ func TestClusterConfigReload(t *testing.T) {
|
||||
}
|
||||
|
||||
lead, _ = waitLeader(es)
|
||||
// wait for msgAppResp to commit all entries
|
||||
time.Sleep(2 * defaultHeartbeat * es[lead].tickDuration)
|
||||
if g := es[lead].p.clusterConfig(); !reflect.DeepEqual(g, conf) {
|
||||
t.Errorf("#%d: clusterConfig = %+v, want %+v", i, g, conf)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user