github.com/anacrolix/torrent@v1.61.0/tracker/tracker_test.go (about)

     1  package tracker
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/stretchr/testify/require"
     7  )
     8  
     9  func TestUnsupportedTrackerScheme(t *testing.T) {
    10  	t.Parallel()
    11  	_, err := Announce{TrackerUrl: "lol://tracker.openbittorrent.com:80/announce"}.Do()
    12  	require.Equal(t, ErrBadScheme, err)
    13  }