diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2024-07-19 13:43:09 -0700 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2024-07-19 13:43:09 -0700 |
| commit | 50c837fe10df05b9cc08decb1add122fb935e8fa (patch) | |
| tree | 9ec18b0e38b1c627cd35208d6fc78a90e3aeec9d /hotline/files_test.go | |
| parent | 6eaf9391526a808c0056427f056169311352446d (diff) | |
Fix failing test, replace use of reflect package with assert
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) } }) |