Skip to content

Commit

Permalink
metainfo: Fix test
Browse files Browse the repository at this point in the history
[]byte(nil) now correctly bencodes to a string
  • Loading branch information
anacrolix committed Nov 27, 2018
1 parent e236cbf commit a0d0c64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metainfo/info_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}

0 comments on commit a0d0c64

Please sign in to comment.