From: Matt Joiner Date: Tue, 27 Nov 2018 00:05:32 +0000 (+1100) Subject: metainfo: Fix test X-Git-Tag: v1.0.0~13 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=a0d0c64e4fc97fe188b621f4ac991c50b10cafe3;p=btrtrc.git metainfo: Fix test []byte(nil) now correctly bencodes to a string --- diff --git a/metainfo/info_test.go b/metainfo/info_test.go index bf2b9a1e..603fe800 100644 --- a/metainfo/info_test.go +++ b/metainfo/info_test.go @@ -11,5 +11,5 @@ func TestMarshalInfo(t *testing.T) { var info Info b, err := bencode.Marshal(info) assert.NoError(t, err) - assert.EqualValues(t, "d4:name0:12:piece lengthi0e6:pieceslee", string(b)) + assert.EqualValues(t, "d4:name0:12:piece lengthi0e6:pieces0:e", string(b)) }