torrent_test.go | 17 ----------------- diff --git a/torrent_test.go b/torrent_test.go index 6134e28df26fd177e6ffb98767fb9ad400edd11f..bca6f775f10bba480af15bea6d5c2d1b068d910b 100644 --- a/torrent_test.go +++ b/torrent_test.go @@ -1,7 +1,6 @@ package torrent import ( - "sync" "testing" "github.com/anacrolix/torrent/peer_protocol" @@ -41,22 +40,6 @@ if req != _case.req { t.Fatalf("expected %v, got %v", _case.req, req) } } -} - -func TestTorrentDoubleClose(t *testing.T) { - tt, err := newTorrent(InfoHash{}) - if err != nil { - t.Fatal(err) - } - wg := sync.WaitGroup{} - for i := 0; i < 2; i++ { - wg.Add(1) - go func() { - tt.close() - wg.Done() - }() - } - wg.Wait() } func TestAppendToCopySlice(t *testing.T) {