test: use require.Equal instead of reflect.DeepEqual
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
f7ff8f2079
commit
db1dc976c2
1 changed files with 2 additions and 4 deletions
|
|
@ -3,7 +3,7 @@ package api
|
|||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"reflect"
|
||||
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
|
|
@ -618,9 +618,7 @@ func TestEliminateDuplicateChecks(t *testing.T) {
|
|||
t.Run(tt.name, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
got := EliminateDuplicateChecks(tt.checkContexts)
|
||||
if !reflect.DeepEqual(tt.want, got) {
|
||||
t.Errorf("got EliminateDuplicateChecks %+v, want %+v", got, tt.want)
|
||||
}
|
||||
require.Equal(t, tt.want, got)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue