mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft: do not use underscore in var name
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
9934034bb1
commit
7aaaa0d82f
@ -2307,7 +2307,7 @@ func TestReadOnlyForNewLeader(t *testing.T) {
|
|||||||
id uint64
|
id uint64
|
||||||
committed uint64
|
committed uint64
|
||||||
applied uint64
|
applied uint64
|
||||||
compact_index uint64
|
compactIndex uint64
|
||||||
}{
|
}{
|
||||||
{1, 1, 1, 0},
|
{1, 1, 1, 0},
|
||||||
{2, 2, 2, 2},
|
{2, 2, 2, 2},
|
||||||
@ -2318,8 +2318,8 @@ func TestReadOnlyForNewLeader(t *testing.T) {
|
|||||||
storage := NewMemoryStorage()
|
storage := NewMemoryStorage()
|
||||||
storage.Append([]pb.Entry{{Index: 1, Term: 1}, {Index: 2, Term: 1}})
|
storage.Append([]pb.Entry{{Index: 1, Term: 1}, {Index: 2, Term: 1}})
|
||||||
storage.SetHardState(pb.HardState{Term: 1, Commit: c.committed})
|
storage.SetHardState(pb.HardState{Term: 1, Commit: c.committed})
|
||||||
if c.compact_index != 0 {
|
if c.compactIndex != 0 {
|
||||||
storage.Compact(c.compact_index)
|
storage.Compact(c.compactIndex)
|
||||||
}
|
}
|
||||||
cfg := newTestConfig(c.id, []uint64{1, 2, 3}, 10, 1, storage)
|
cfg := newTestConfig(c.id, []uint64{1, 2, 3}, 10, 1, storage)
|
||||||
cfg.Applied = c.applied
|
cfg.Applied = c.applied
|
||||||
|
Loading…
x
Reference in New Issue
Block a user