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/files_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hotline/files_test.go') diff --git a/hotline/files_test.go b/hotline/files_test.go index 4c8ef80..0a7eb7b 100644 --- a/hotline/files_test.go +++ b/hotline/files_test.go @@ -3,9 +3,9 @@ package hotline import ( "bytes" "encoding/binary" + "github.com/stretchr/testify/assert" "os" "path/filepath" - "reflect" "testing" ) @@ -77,7 +77,7 @@ func TestCalcTotalSize(t *testing.T) { t.Errorf("CalcTotalSize() error = %v, wantErr %v", err, tt.wantErr) return } - if !reflect.DeepEqual(got, tt.want) { + if !assert.Equal(t, tt.want, got) { t.Errorf("CalcTotalSize() got = %v, want %v", got, tt.want) } }) -- cgit