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/tracker_test.go | |
| parent | 6eaf9391526a808c0056427f056169311352446d (diff) | |
Fix failing test, replace use of reflect package with assert
Diffstat (limited to 'hotline/tracker_test.go')
| -rw-r--r-- | hotline/tracker_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hotline/tracker_test.go b/hotline/tracker_test.go index 14c0363..5457e47 100644 --- a/hotline/tracker_test.go +++ b/hotline/tracker_test.go @@ -6,7 +6,6 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" "io" - "reflect" "testing" ) @@ -42,6 +41,7 @@ func TestTrackerRegistration_Payload(t *testing.T) { 0x54, 0x65, 0x73, 0x74, 0x20, 0x53, 0x65, 0x72, 0x76, 0x04, 0x46, 0x6f, 0x6f, 0x7a, + 0x00, }, }, } @@ -55,7 +55,7 @@ func TestTrackerRegistration_Payload(t *testing.T) { Description: tt.fields.Description, } - if got, _ := io.ReadAll(tr); !reflect.DeepEqual(got, tt.want) { + if got, _ := io.ReadAll(tr); !assert.Equal(t, tt.want, got) { t.Errorf("Read() = %v, want %v", got, tt.want) } }) |