2014-03-16 23:31:06 +08:00
|
|
|
package tracker
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
2018-02-19 13:19:18 +08:00
|
|
|
|
|
|
|
"github.com/stretchr/testify/require"
|
2014-03-16 23:31:06 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestUnsupportedTrackerScheme(t *testing.T) {
|
2015-10-04 16:58:23 +08:00
|
|
|
t.Parallel()
|
2018-02-19 13:19:18 +08:00
|
|
|
_, err := Announce{TrackerUrl: "lol://tracker.openbittorrent.com:80/announce"}.Do()
|
|
|
|
require.Equal(t, ErrBadScheme, err)
|
2014-03-16 23:31:06 +08:00
|
|
|
}
|