]> git.r.bdr.sh - rbdr/mobius/blobdiff - hotline/news_test.go
Fix tracker results
[rbdr/mobius] / hotline / news_test.go
index 3871ec251c97369bb610e3db96f568b68d2dd5e6..d1b043edc333762066a694d62c61846757ac04e0 100644 (file)
@@ -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++ {