]> Sergey Matveev's repositories - btrtrc.git/blob - utp_test.go
Use the new firewall callback support in go-libutp
[btrtrc.git] / utp_test.go
1 package torrent
2
3 import (
4         "testing"
5
6         "github.com/stretchr/testify/assert"
7 )
8
9 func TestNewUtpSocketErrorNilInterface(t *testing.T) {
10         s, err := NewUtpSocket("fix", "your:language", nil)
11         assert.Error(t, err)
12         if s != nil {
13                 t.Fatalf("expected nil, got %#v", s)
14         }
15 }