aboutsummaryrefslogtreecommitdiff
path: root/hotline/news_test.go
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2024-06-24 16:23:56 -0700
committerJeff Halter <868228+jhalter@users.noreply.github.com>2024-06-24 16:23:56 -0700
commita2ef262a164fc735b9b8471ac0c8001eea2b9bf6 (patch)
tree9a24fc5949df1183895a125e09cb262cdf79b073 /hotline/news_test.go
parenta55350daaf83498b7a237c027ad0dd2377f06fee (diff)
Refactoring, cleanup, test backfilling
Diffstat (limited to 'hotline/news_test.go')
-rw-r--r--hotline/news_test.go3
1 files changed, 2 insertions, 1 deletions
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++ {