X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/6eaf9391526a808c0056427f056169311352446d..50c837fe10df05b9cc08decb1add122fb935e8fa:/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) } })