X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/a55350daaf83498b7a237c027ad0dd2377f06fee..a2ef262a164fc735b9b8471ac0c8001eea2b9bf6:/hotline/news_test.go?ds=sidebyside diff --git a/hotline/news_test.go b/hotline/news_test.go index 3871ec2..d1b043e 100644 --- a/hotline/news_test.go +++ b/hotline/news_test.go @@ -2,6 +2,7 @@ package hotline import ( "github.com/stretchr/testify/assert" + "io" "testing" ) @@ -79,7 +80,7 @@ func TestNewsCategoryListData15_MarshalBinary(t *testing.T) { DeleteSN: tt.fields.DeleteSN, GUID: tt.fields.GUID, } - gotData, err := newscat.MarshalBinary() + gotData, err := io.ReadAll(newscat) if newscat.Type == [2]byte{0, 3} { // zero out the random GUID before comparison for i := 4; i < 20; i++ {