X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/48ecb30da4babac9955891063f658207a31480ba..ad26e789e9e608b50b4e2d7304fd8e4df35fb126:/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++ {