Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#411 Pick an available port on "listen EADDRINUSE" or "listen EACCES" #445

Merged
merged 3 commits into from Nov 9, 2015
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Next

Test automatically picking an available port

see #411
  • Loading branch information
joseph-onsip committed Nov 9, 2015
commit 2b696a734fc031ecc375826b5c263079370c8a03
@@ -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'
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.