Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

More robust webtorrent test

Chocobozzzc791e6d52393
diff --git a/packages/tests/src/shared/webtorrent.ts b/packages/tests/src/shared/webtorrent.ts
index ab7282a8e7..9513360648 100644
--- a/packages/tests/src/shared/webtorrent.ts
+++ b/packages/tests/src/shared/webtorrent.ts
@@ -56,7 +56,12 @@ export async function magnetUriEncode (data: MagnetUriInstance) {
async function webtorrentAdd (torrentId: string) {
const WebTorrent = (await import('webtorrent')).default
- const webtorrent = new WebTorrent()
+ const webtorrent = new WebTorrent({
+ natUpnp: false,
+ natPmp: false,
+ utp: false,
+ lsd: false
+ } as any)
webtorrent.on('error', err => console.error('Error in webtorrent', err))