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/file_name_with_info_test.go | |
| parent | 6eaf9391526a808c0056427f056169311352446d (diff) | |
Fix failing test, replace use of reflect package with assert
Diffstat (limited to 'hotline/file_name_with_info_test.go')
| -rw-r--r-- | hotline/file_name_with_info_test.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hotline/file_name_with_info_test.go b/hotline/file_name_with_info_test.go index d1b03c2..5095acf 100644 --- a/hotline/file_name_with_info_test.go +++ b/hotline/file_name_with_info_test.go @@ -3,7 +3,6 @@ package hotline import ( "github.com/stretchr/testify/assert" "io" - "reflect" "testing" ) @@ -54,7 +53,7 @@ func TestFileNameWithInfo_MarshalBinary(t *testing.T) { t.Errorf("MarshalBinary() error = %v, wantErr %v", err, tt.wantErr) return } - if !reflect.DeepEqual(gotData, tt.wantData) { + if !assert.Equal(t, tt.wantData, gotData) { t.Errorf("MarshalBinary() gotData = %v, want %v", gotData, tt.wantData) } }) |