]> Sergey Matveev's repositories - btrtrc.git/blob - utp_test.go
Drop peer request alloc reservations when peer is closed
[btrtrc.git] / utp_test.go
1 package torrent
2
3 import (
4         "testing"
5
6         "github.com/anacrolix/log"
7
8         "github.com/stretchr/testify/assert"
9 )
10
11 func TestNewUtpSocketErrorNilInterface(t *testing.T) {
12         s, err := NewUtpSocket("fix", "your:language", nil, log.Default)
13         assert.Error(t, err)
14         if s != nil {
15                 t.Fatalf("expected nil, got %#v", s)
16         }
17 }