FedP2P/utp_test.go

16 lines
268 B
Go

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