FedP2P/tracker/tracker_test.go

14 lines
268 B
Go
Raw Normal View History

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) {
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
}