mirror of
https://github.com/bitmagnet-io/bitmagnet.git
synced 2026-07-18 18:25:26 -04:00
070f38120b
- Address https://github.com/bitmagnet-io/bitmagnet/issues/11 with BEP5 & BEP51 implementations - Reimplement DHT crawler around new routing table - Fix https://github.com/bitmagnet-io/bitmagnet/issues/45 - Fix https://github.com/bitmagnet-io/bitmagnet/issues/42 - Fix https://github.com/bitmagnet-io/bitmagnet/issues/39 - Fix https://github.com/bitmagnet-io/bitmagnet/issues/37 - Make bootstrap nodes configurable: https://github.com/bitmagnet-io/bitmagnet/issues/27 - Add profiling tools to Docker image
15 lines
298 B
Go
15 lines
298 B
Go
package dht
|
|
|
|
import (
|
|
"github.com/anacrolix/torrent/bencode"
|
|
"github.com/stretchr/testify/require"
|
|
"testing"
|
|
)
|
|
|
|
// https://github.com/anacrolix/torrent/issues/166
|
|
func TestUnmarshalBadError(t *testing.T) {
|
|
var e Error
|
|
err := bencode.Unmarshal([]byte(`l5:helloe`), &e)
|
|
require.Error(t, err)
|
|
}
|