diff options
Diffstat (limited to 'hotline/files_test.go')
| -rw-r--r-- | hotline/files_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
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) } }) |