mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft: bug fix (#12123)
we need to test the case when configuration set is changed, but there is typo. None Signed-off-by: accelsao <bebe8277@gmail.com>
This commit is contained in:
parent
ef866a6d8b
commit
93637b1779
@ -216,7 +216,7 @@ func TestDataDriven(t *testing.T) {
|
||||
fmt.Fprintf(&buf, cc.Describe(l))
|
||||
idx := cc.CommittedIndex(l)
|
||||
// Interchanging the majorities shouldn't make a difference. If it does, print.
|
||||
if aIdx := JointConfig([2]MajorityConfig{c, cj}).CommittedIndex(l); aIdx != idx {
|
||||
if aIdx := JointConfig([2]MajorityConfig{cj, c}).CommittedIndex(l); aIdx != idx {
|
||||
fmt.Fprintf(&buf, "%s <-- via symmetry\n", aIdx)
|
||||
}
|
||||
fmt.Fprintf(&buf, "%s\n", idx)
|
||||
|
Loading…
x
Reference in New Issue
Block a user