2
0
mirror of synced 2025-02-24 14:48:27 +00:00
torrent/tracker/tracker_test.go

14 lines
268 B
Go
Raw Normal View History

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