From 2e76f786c6464940ec52916f248196a41d3bcc7e Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Thu, 27 Mar 2014 21:02:11 -0700 Subject: [PATCH] add tests for udp client --- test/client.js | 1 - test/torrents/leaves.torrent | Bin 0 -> 994 bytes test/udp-client.js | 84 +++++++++++++++++++++++++++++++++++ 3 files changed, 84 insertions(+), 1 deletion(-) create mode 100644 test/torrents/leaves.torrent create mode 100644 test/udp-client.js diff --git a/test/client.js b/test/client.js index 2371d1f..1576b2c 100644 --- a/test/client.js +++ b/test/client.js @@ -5,7 +5,6 @@ var test = require('tape') var torrent = fs.readFileSync(__dirname + '/torrents/bitlove-intro.torrent') var parsedTorrent = parseTorrent(torrent) -console.log(parsedTorrent.infoHash.toString('hex')) var peerId = new Buffer('01234567890123456789') var port = 6881 diff --git a/test/torrents/leaves.torrent b/test/torrents/leaves.torrent new file mode 100644 index 0000000000000000000000000000000000000000..f18e7c11399d05b91973b5786c2d42c2073eaac0 GIT binary patch literal 994 zcmYeXuu9C!%P-AKPBk&G$|xx*u+rBrDN0PvPA$?a$w)28EJ`d%O-iiP%P&gThbc8Q zhU?PJ$t*6($ss{=YL2m~RcQ*cMfnA(c}bZiCHX}~sd*)O$@#ff76z#~M#gCBl9QA5 zQc@vumS}PXrAaxN$w>&^CNSM;MaIS{`MEG(Wf&Vn6d4;E8o<3|Y>w`GBnKtt!qugw znp*+gmkV?!P>V}`d0tL_VoGX?LRwLNt^zawLo!lBpnd@co1uYKa#1QU7*iCIDuF>) z3YF70Ha0K-^1+gs`FRQ{KsA|$#^$ERX2xb_W~mldsd>ryDVcfcrdFXLZn_pGR+)Ke z`6*^rIjMQ+B^jBmd!_dsw!X(uUB3NuJN|hqVr|fWuh5_ zvXvR?=grjIxBjT8T&f_a;leFGiu>g}u`|TL>r`@D(L8SV;_Fo} zcvekYs?y;5&wKXed+UDAJb5>esU$scZrr9YsYhoR-D;nHbLL9evrDD2Y|{G`<-E%G zxte(=o;Ka=P}Q+(K_u^qldH0X_|=`$@7zd#(bsHov}i$|O@p-NSIPUq+ID5%3eIP} z3l^xiwKQ*O{x;_a|I&<&uZ~&=Bu2jMxUolUlCDr}`3>f4L5EKn6dcTZJF#eWK(4}5 zrC0V++e$Y7RKA}7;*0-hJ#!sv^VF1MzvFrL1&R4HC(XZTq-M5jw+^Fs?YaovCBn(m zf)byd6WU_V_+iD#x1tKm`F1h5Ff2+hi_f*adVJs3y*8zv?`wsGaV0hgy8rS!em<

5}vHN%)P|wo^O)PB=E>-fZ5rlV)(T9Z