aboutsummaryrefslogtreecommitdiff
path: root/bencode
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-07-18 01:21:47 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-07-18 01:21:47 +0200
commit857c4cae5f4a54952fd4ecf78235dac33e9f0405 (patch)
treeb2a124f2437f6a0704294ef4b4c27d181ad86e36 /bencode
parent59e40ca90dc1a26e1e728bcaec29b061c8b07d87 (diff)
Cleanup
Diffstat (limited to 'bencode')
-rw-r--r--bencode/bencode_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/bencode/bencode_test.go b/bencode/bencode_test.go
index 329baad..48c494d 100644
--- a/bencode/bencode_test.go
+++ b/bencode/bencode_test.go
@@ -104,7 +104,7 @@ func TestUnmarshalPartial(t *testing.T) {
func TestUnmarshalBool(t *testing.T) {
var b struct{ A bool }
in := `d1:Ai1ee`
- err := Unmarshal([]byte(in), &b)
+ _, err := Unmarshal([]byte(in), &b)
if err != nil {
t.Error(err)
}
@@ -116,7 +116,7 @@ func TestUnmarshalBool(t *testing.T) {
func TestUnmarshalInt64(t *testing.T) {
var b struct{ A int64 }
in := `d1:Ai42ee`
- err := Unmarshal([]byte(in), &b)
+ _, err := Unmarshal([]byte(in), &b)
if err != nil {
t.Error(err)
}