From a2ef262a164fc735b9b8471ac0c8001eea2b9bf6 Mon Sep 17 00:00:00 2001 From: Jeff Halter <868228+jhalter@users.noreply.github.com> Date: Mon, 24 Jun 2024 16:23:56 -0700 Subject: Refactoring, cleanup, test backfilling --- hotline/news_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'hotline/news_test.go') 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++ { -- cgit