X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/a2ef262a164fc735b9b8471ac0c8001eea2b9bf6..7c005672a40eb92110e32b37f41f59c027fa8598:/hotline/files_test.go?ds=sidebyside 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) } })