test: use require.Equal instead of reflect.DeepEqual

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Kynan Ware 2026-03-11 16:03:33 -06:00
parent f7ff8f2079
commit db1dc976c2

View file

@ -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)
})
}
}