Skip to content

Commit

Permalink
fixup! jog Equivalent in TestRestore
Browse files Browse the repository at this point in the history
  • Loading branch information
tbg committed Aug 8, 2019
1 parent 7f60c24 commit 4b95c8c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion raft/confchange/restore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ func TestRestore(t *testing.T) {
}

cs2 := chg.Tracker.ConfState()
if reflect.DeepEqual(cs, cs2) {
// NB: cs.Equivalent does the same "sorting" dance internally, but let's
// test it a bit here instead of relying on it.
if reflect.DeepEqual(cs, cs2) && cs.Equivalent(cs2) == nil && cs2.Equivalent(cs) == nil {
return true // success
}
t.Errorf(`
Expand Down

0 comments on commit 4b95c8c

Please sign in to comment.