aboutsummaryrefslogtreecommitdiff
path: root/hotline
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2024-06-17 11:23:32 -0700
committerJeff Halter <868228+jhalter@users.noreply.github.com>2024-06-17 11:23:32 -0700
commit48ecb30da4babac9955891063f658207a31480ba (patch)
tree202ff0c02f1acc15ddb05d8f75c0eac1489ca1d2 /hotline
parent0ed5132769e88cb385b5240986b706430f0ccd72 (diff)
Update failing news test
Diffstat (limited to 'hotline')
-rw-r--r--hotline/news_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/hotline/news_test.go b/hotline/news_test.go
index a2102b2..3871ec2 100644
--- a/hotline/news_test.go
+++ b/hotline/news_test.go
@@ -1,7 +1,7 @@
package hotline
import (
- "reflect"
+ "github.com/stretchr/testify/assert"
"testing"
)
@@ -60,8 +60,8 @@ func TestNewsCategoryListData15_MarshalBinary(t *testing.T) {
0x00, 0x03,
0x00, 0x01,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x01,
- 0x00, 0x00, 0x00, 0x02,
+ 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00,
0x03,
0x66, 0x6f, 0x6f,
},
@@ -90,7 +90,7 @@ func TestNewsCategoryListData15_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)
}
})