diff options
author | Joseph Frazier <joseph@onsip.com> | 2015-11-09 05:01:35 +0300 |
---|---|---|
committer | Joseph Frazier <joseph@onsip.com> | 2015-11-09 05:13:40 +0300 |
commit | 2b696a734fc031ecc375826b5c263079370c8a03 (patch) | |
tree | d90cf66dd3c54b8d00be588ee63607f4bd03ee44 /test | |
parent | 9dde13d6b8e0764f45d0d7ee6106891c6c60648f (diff) |
Test automatically picking an available port
see https://github.com/feross/webtorrent/issues/411
Diffstat (limited to 'test')
-rw-r--r-- | test/cmd.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/cmd.js b/test/cmd.js index ee8a87b..5699a0e 100644 --- a/test/cmd.js +++ b/test/cmd.js @@ -99,6 +99,15 @@ test('Command line: webtorrent create /path/to/file', function (t) { }) }) +test('Command line: webtorrent download --port 80', function (t) { + t.plan(2) + + cp.exec(CMD + ' --port 80 --out test/content download test/torrents/leaves.torrent', function (err, data) { + t.error(err) + t.ok(data.indexOf('successfully') !== -1) + }) +}) + // TODO: test 'webtorrent download /path/to/torrent' // TODO: test 'webtorrent download magnet_uri' // TODO: test 'webtorrent seed /path/to/file' |