...
1# Set up three voters for this test.
2
3simple
4v1
5----
6voters=(1)
71: StateProbe match=0 next=0
8
9simple
10v2
11----
12voters=(1 2)
131: StateProbe match=0 next=0
142: StateProbe match=0 next=1
15
16simple
17v3
18----
19voters=(1 2 3)
201: StateProbe match=0 next=0
212: StateProbe match=0 next=1
223: StateProbe match=0 next=2
23
24# Can atomically demote and promote without a hitch.
25# This is pointless, but possible.
26simple
27l1 v1
28----
29voters=(1 2 3)
301: StateProbe match=0 next=0
312: StateProbe match=0 next=1
323: StateProbe match=0 next=2
33
34# Can demote a voter.
35simple
36l2
37----
38voters=(1 3) learners=(2)
391: StateProbe match=0 next=0
402: StateProbe match=0 next=1 learner
413: StateProbe match=0 next=2
42
43# Can atomically promote and demote the same voter.
44# This is pointless, but possible.
45simple
46v2 l2
47----
48voters=(1 3) learners=(2)
491: StateProbe match=0 next=0
502: StateProbe match=0 next=1 learner
513: StateProbe match=0 next=2
52
53# Can promote a voter.
54simple
55v2
56----
57voters=(1 2 3)
581: StateProbe match=0 next=0
592: StateProbe match=0 next=1
603: StateProbe match=0 next=2
View as plain text