Skip to content

Commit

Permalink
Update a case in TestRaft_RecoverCluster
Browse files Browse the repository at this point in the history
To cover the proper case.
  • Loading branch information
dnephin committed May 17, 2021
1 parent 0b418e9 commit f93d7eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions raft_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ func TestRaft_RecoverCluster(t *testing.T) {
t.Run("no snapshot, no trailing logs", func(t *testing.T) {
runRecover(t, 0)
})
t.Run("snapshot", func(t *testing.T) {
runRecover(t, snapshotThreshold)
t.Run("no snapshot, some trailing logs", func(t *testing.T) {
runRecover(t, snapshotThreshold-1)
})
t.Run("snapshot, with trailing logs", func(t *testing.T) {
runRecover(t, snapshotThreshold+20)
Expand Down

0 comments on commit f93d7eb

Please sign in to comment.