From 50c837fe10df05b9cc08decb1add122fb935e8fa Mon Sep 17 00:00:00 2001 From: Jeff Halter <868228+jhalter@users.noreply.github.com> Date: Fri, 19 Jul 2024 13:43:09 -0700 Subject: Fix failing test, replace use of reflect package with assert --- hotline/file_name_with_info_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'hotline/file_name_with_info_test.go') diff --git a/hotline/file_name_with_info_test.go b/hotline/file_name_with_info_test.go index d1b03c2..5095acf 100644 --- a/hotline/file_name_with_info_test.go +++ b/hotline/file_name_with_info_test.go @@ -3,7 +3,6 @@ package hotline import ( "github.com/stretchr/testify/assert" "io" - "reflect" "testing" ) @@ -54,7 +53,7 @@ func TestFileNameWithInfo_MarshalBinary(t *testing.T) { t.Errorf("MarshalBinary() error = %v, wantErr %v", err, tt.wantErr) return } - if !reflect.DeepEqual(gotData, tt.wantData) { + if !assert.Equal(t, tt.wantData, gotData) { t.Errorf("MarshalBinary() gotData = %v, want %v", gotData, tt.wantData) } }) -- cgit