2
0
mirror of synced 2025-02-22 13:48:21 +00:00
torrent/utp_test.go
2023-05-12 13:47:47 +10:00

17 lines
309 B
Go

package torrent
import (
"testing"
"github.com/anacrolix/log"
"github.com/stretchr/testify/assert"
)
func TestNewUtpSocketErrorNilInterface(t *testing.T) {
s, err := NewUtpSocket("fix", "your:language", nil, log.Default)
assert.Error(t, err)
if s != nil {
t.Fatalf("expected nil, got %#v", s)
}
}