FedP2P/tracker/tracker_test.go

14 lines
268 B
Go

package tracker
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestUnsupportedTrackerScheme(t *testing.T) {
t.Parallel()
_, err := Announce{TrackerUrl: "lol://tracker.openbittorrent.com:80/announce"}.Do()
require.Equal(t, ErrBadScheme, err)
}