From db1dc976c2f729191238166b5c5db56ad3672afa Mon Sep 17 00:00:00 2001 From: Kynan Ware <47394200+BagToad@users.noreply.github.com> Date: Wed, 11 Mar 2026 16:03:33 -0600 Subject: [PATCH] test: use require.Equal instead of reflect.DeepEqual Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- api/pull_request_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/api/pull_request_test.go b/api/pull_request_test.go index dc736bd75..63c451caa 100644 --- a/api/pull_request_test.go +++ b/api/pull_request_test.go @@ -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) }) } }