mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft: remove unnecessary reflect.DeepEqual in test
This commit is contained in:
parent
7cc4596ebd
commit
9b5e99efe0
@ -709,7 +709,7 @@ func TestTerm(t *testing.T) {
|
|||||||
|
|
||||||
for j, tt := range tests {
|
for j, tt := range tests {
|
||||||
term := mustTerm(l.term(tt.index))
|
term := mustTerm(l.term(tt.index))
|
||||||
if !reflect.DeepEqual(term, tt.w) {
|
if term != tt.w {
|
||||||
t.Errorf("#%d: at = %d, want %d", j, term, tt.w)
|
t.Errorf("#%d: at = %d, want %d", j, term, tt.w)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -739,7 +739,7 @@ func TestTermWithUnstableSnapshot(t *testing.T) {
|
|||||||
|
|
||||||
for i, tt := range tests {
|
for i, tt := range tests {
|
||||||
term := mustTerm(l.term(tt.index))
|
term := mustTerm(l.term(tt.index))
|
||||||
if !reflect.DeepEqual(term, tt.w) {
|
if term != tt.w {
|
||||||
t.Errorf("#%d: at = %d, want %d", i, term, tt.w)
|
t.Errorf("#%d: at = %d, want %d", i, term, tt.w)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user