2
0
mirror of synced 2025-02-24 14:48:27 +00:00
torrent/handshake_test.go

17 lines
358 B
Go
Raw Normal View History

2017-11-08 19:28:03 +11:00
package torrent
import (
"testing"
"github.com/anacrolix/missinggo"
"github.com/stretchr/testify/assert"
)
func TestDefaultExtensionBytes(t *testing.T) {
var pex peerExtensionBytes
missinggo.CopyExact(&pex, defaultPeerExtensionBytes())
2017-11-08 19:28:03 +11:00
assert.True(t, pex.SupportsDHT())
assert.True(t, pex.SupportsExtended())
assert.False(t, pex.SupportsFast())
}